f96q/kptboard

View on GitHub
app/javascripts/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react'
import Modal from 'react-modal'
import { render } from 'react-dom'
import { App } from './components/App'

const retrospective = document.getElementsByClassName('js-retrospective')[0]
const retrospectiveId = retrospective.getAttribute('data-id')

Modal.setAppElement(retrospective)
render(<App retrospectiveId={retrospectiveId} />, retrospective)