...

/

Final Implementation

Final Implementation

Learn how to use Redux in your application.

We'll cover the following...

To complete our example, let’s switch to the real Redux library and see how similar the solution remains.

First, add the Redux library, for now using unpkg:

<script src="https://unpkg.com/redux/dist/redux.js" />

We then change our previous state definition to be a constant that only defines the initial value of the state:

const
...