August 2017
Beginner
374 pages
10h 41m
English
In our App component, we pass the Redux store manually to each connected component. While this method works, it is a bit tedious and might get complicated when we have to pass down the store over multiple levels of components.
React-Redux provides a <Provider> component, which passes the Redux store down to all child components (even deeply nested ones), via React context.
Edit the src/components/App.jsx file:
import { Provider } from 'react-redux'
const App = ({ store }) => <Provider store={store}> <div> ... </div> </Provider>
Read now
Unlock full access