Sha256: 2c6b283a2be5b4667cde37c6d46a433c9e10431168709a5fcf693a9ea40d2ce6
Contents?: true
Size: 753 Bytes
Versions: 35
Compression:
Stored size: 753 Bytes
Contents
import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/helloWorldStore'; import HelloWorldContainer from '../containers/HelloWorldContainer'; // 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. // railsContext provides contextual information especially useful for server rendering, such as // knowing the locale. See the React on Rails documentation for more info on the railsContext const HelloWorldApp = (props, _railsContext) => ( <Provider store={configureStore(props)}> <HelloWorldContainer /> </Provider> ); export default HelloWorldApp;
Version data entries
35 entries across 35 versions & 1 rubygems