1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-15 07:40:07 +02:00
copilot/frontend/src/index.js

19 lines
335 B
JavaScript
Raw Normal View History

2016-10-25 22:36:05 +03:00
const a11y = require('react-a11y');
2016-10-20 04:14:26 +03:00
const ReactDOM = require('react-dom');
const React = require('react');
2016-10-25 22:36:05 +03:00
if (process.env.NODE_ENV !== 'production') {
a11y(React, {
ReactDOM
});
}
2016-10-20 04:14:26 +03:00
const render = () => {
const Root = require('./root');
ReactDOM.render(
<Root />,
document.getElementById('root')
);
};
2017-02-20 18:15:36 +02:00
render();