You have searched on countless occassions “when should I use Redux in my React app?”. Each time being greeted with the same response. “You will know when you know!”.

Finally, the day arrives, the state of your application has become difficult to deal with. It is now unnecessarily tricky to pass state around your app, and overall you don’t have a good picture of what is going on. BOOM! Time to meet redux. And finally “You know when you know!”.

Here is a quick overview of all the steps required to add redux to your react application:

install redux and react-redux create a reducer . create a store passing in this reducer . wrap your app in a Provider passing in the store. create a mapStateToProps function create a mapDispatchToProps function (if you wish to update the state) connect your app to the redux store

See below for a more detailed description of each of the above steps.