Binding components with business logic
In this section, we're going to explore how all this logic we've introduced can be injected inside our React application, using React hooks. Hooks are a new addition to React 16.8. They let you use the state and other React features without writing a class. This is the recommended approach of developing components with React since we often have problems with maintaining components that started out simple but have grown into an unmanageable mess of stateful logic and side effects, becoming, all in all, unmaintainable. If you don't know how hooks work, reading this official React guide should be the first step: https://reactjs.org/docs/hooks-intro.html.
The react-redux
library includes its own custom hook APIs, which allow your React component to subscribe to the Redux store and also to the Rematch stores. Rematch is 100% compatible with the react-redux
library and works out of the box with its API, making any migration from Redux...