React Redux Notes

Redux is not just for React, it’s a store system available for other frameworks like Angular, Jquery, Ember or vanilla JS. redux is the main package and react-redux is a supporting package for binding with react. Installation Store Create a store.js file to store all the state items in it. I did it on src/redux/store.js Import createStore which is a function from redux: Create a default state object to hold all of your state info: Create a reducer function which takes a state and an action object. Always return the default state from the reducer function. Destructure the type and …

Read More