Sha256: 2fcd2c3f79e28152632c6a619ce8d111188bc753e75d06fb95e7e96aec4c1d20
Contents?: true
Size: 844 Bytes
Versions: 7
Compression:
Stored size: 844 Bytes
Contents
import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/<%= module_name %>Store'; import <%= module_name.capitalize %>Container from '../containers/<%= module_name %>Container'; // 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 <%= module_name.capitalize %>App = (props, _railsContext) => ( <Provider store={configureStore(props)}> <<%= module_name.capitalize %>Container /> </Provider> ); export default <%= module_name.capitalize %>App;
Version data entries
7 entries across 7 versions & 1 rubygems