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

https://rematch.netlify.app/#/

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.

  1. Install packages and plugins

https://rematch.netlify.app/#/quick-start

I would like to thank Mateo Renteria (https://github.com/Mthew) to teach me and show me this tool .

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store