In this recipe, you will write a middleware function that will warn the user when dispatching an action type that has not been defined. First, create a new package.json file with the following content:
{ "dependencies": { "redux": "4.0.0" } }
Then, install the dependencies by opening a Terminal and running:
npm install