Time traveling with Redux
Even though, you may probably never need to write store enhancers, there is one special that you may find very useful for debugging your Redux powered applications to time travel through the state of your application. You can enable time traveling on your application by simple installing Redux DevTools Extension (for Chrome and Firefox): https://github.com/zalmoxisus/redux-devtools-extension.
Getting ready
In this recipe, we will see an example of how to take advanced of this feature and analyze how the state of your application has changed over the time that was running on the browser. First, create a new package.json
file with the following content:
{ "dependencies": { "express": "4.16.3", "redux": "4.0.0" } }
Then, install the dependencies by opening a Terminal and running:
npm install
Make sure to have installed the Redux DevTools Extension in your web browser.
How to do it...
Build a counter application that will randomly increment or...