- Redux Quick Start Guide
- James Lee Tao Wei Suresh Kumar Mukhiya
- 79字
- 2021-07-02 12:40:30
Store
The store stores all of the states of the application. Hence, it is sometimes referred to as the heart of the application. The most important point to note is that there is a single store in the entire application. To create a store, we can use the createStore function provided by Redux:
import { createStore } from 'redux'
import doctorsReducer from './reducers'
const store = createStore(doctorsReducer)
The methods for stores will be explained in the following subsections.