Adding Redux for state management

Redux is a common library for managing the state of your application, especially when it is a little more complicated, and you want to control the flow of events in your frontend project! Redux provides a way for you to tightly control how the entire state of your application is affected by different types of events, such as button clicks or form changes. If your application gets incredibly large and complex, and managing too many different streams of events affecting your application becomes too hard, it is a great time to introduce something like Redux to your project!

The good news is that, similar to the previous libraries, you can also add Redux to your Create React App project without a lot of extra fuss! You'll want both redux and react-redux, to make sure that you have all of the bindings that you'd normally need to connect everything together:

$ yarn add redux react-redux

This should install everything that you need to get started with Redux. Similar to the other libraries that we've mentioned, Redux is an incredibly complex topic that could easily fill up an entire book by itself. If you'd like to learn more about Redux, visit https://redux.js.org/.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset