MENU
Provider
Typically rendered at the top level, the <Provider> component makes the Redux store accessible to any nested components.
In addition to 'store', you may provide a context instance. If you do so, you will need to provide the same context instance to all of your connected components as well.
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { App } from './App'
import createStore from './createReduxStore'
const store = createStore()
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
)