client/app/bundles/group-attendance/startup/group-attendance-app-client.jsx
import React from 'react';
import { Provider } from 'react-redux';
import createStore from '../store/group-attendance-store';
import GroupAttendance from '../containers/group-attendance';
// 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}>
<GroupAttendance />
</Provider>
);
return reactComponent;
};