Currently there are two concepts how to connect a React component to the redux store: connect() and Redux Hooks. I was wondering whether using hooks is considered good software design.
- It harms the Single Responsibility Principle because the Component is not only responsible for rendering the data, but also for connecting to the store.
- There is a tight coupling between the Component and Redux. It will be difficult to reuse the component or to switch from Redux to another state management solution.
Are there any advantages of hooks over connect()
regarding software quality?