Store Setup

Learn how to set up the store.

We'll cover the following...

In Redux, only one store is created and initialized by the createStore() method. Let’s open our index.js file and create the store:

import { createStore } from 'redux';

const reducer = (state, action) => state;
const store =
...