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) => ( <<%= module_name.capitalize %>Container /> ); export default <%= module_name.capitalize %>App;