redux Provider


Example

To easily link your Redux store to your React components you can use an additional library: react-redux.

First, you need to wrap your app in a Provider, which is a component that passes your store to be used by child components:

import { Provider } from 'react-redux';

/// ... store = createStore()

const App = () => (
  <Provider store={store}>
    <MyComponent>
  </Provider>
)