Files
freeCodeCamp/common/app/provide-store.js
2018-08-03 19:27:42 +05:30

12 lines
251 B
JavaScript

/* eslint-disable react/display-name */
import React from 'react';
import { Provider } from 'react-redux';
export default function provideStore(Component, store) {
return (
<Provider store={ store } >
<Component />
</Provider>
);
}