Redux, no more. A simple way to use it with rematch for redux
In this post i want to describe the simple way to use redux with a súper simple framework rematch
You Wont fight never with a complicated setup with rematch, you just need a config, store and model, in this file you can create the whole logic and initial state for your app
It Is simple, look at the git page : https://github.com/rematch/rematch/
Check the examples : https://github.com/rematch/rematch/tree/next/examples/count-react
With this framework it is better to use hooks, the future of react.
Let me show you in few steps how,you can set up your store.
Note: A model contains the state (initial state), the reducer (method to update the model state), and the effect (the methods that you can use to apply logic, and call the reducer to change the state for this model.
- Install packages and plugins
- Create store file .
- Create a config file.
- Create a model
- Import the store in your app.
I would like to thank Mateo Renteria (https://github.com/Mthew) to teach me and show me this tool .