Sha256: c5063429791f47299b69364a120cd0c701f4ff45684226d60c45c011ecaef923
Contents?: true
Size: 563 Bytes
Versions: 20
Compression:
Stored size: 563 Bytes
Contents
import React from 'react'; import { Provider } from 'react-redux'; import createStore from '../store/helloWorldStore'; import HelloWorld from '../containers/HelloWorld'; // See documentation for https://github.com/reactjs/react-redux. // This is how you get props from the Rails view into the redux store. // This code here binds your smart component to the redux store. export default (props) => { const store = createStore(props); const reactComponent = ( <Provider store={store}> <HelloWorld /> </Provider> ); return reactComponent; };
Version data entries
20 entries across 20 versions & 1 rubygems