KyivKrishnaAcademy/ved_akadem_students

View on GitHub
client/app/bundles/group-attendance/startup/group-attendance-app-client.jsx

Summary

Maintainability
A
1 hr
Test Coverage
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;
};