Creating the Store
Learn to create a Redux store.
We'll cover the following
Creating a function to create Redux store
The final task in Store.ts
is to create a function that creates the Redux store so that it can be provided to the React components. We need to feed all the store reducers into this function as well. Let’s do this by performing the following steps:
First, let’s import the
Store
type and thecreateStore
andcombineReducers
functions from Redux:
Get hands-on with 1400+ tech skills courses.