Codeminer42/cm42-central

View on GitHub
app/assets/javascripts/controllers/beta/project_boards/ShowController.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import ProjectBoard from 'components/projects/ProjectBoard';
import store from 'store';

export default () => {
  const appElement = document.querySelector('[data-app]');
  const { projectId } = appElement.dataset;

  render(
    <Provider store={store}>
      <ProjectBoard projectId={projectId} />
    </Provider>,
    appElement
  );
};