Creating a Store
Learn how to create a Redux store, get the current state from the store, and pass actions to update the stored state.
We'll cover the following...
The createStore
function
To create a store that will manage the global state, we have to import the createStore
function from the redux
package. We can call it by passing it a reducer function. This function returns a store object to us, which contains all ...