react-chips-devitjobs
Version:
A flexible and easy to use Chips component for React
28 lines (24 loc) • 587 B
JavaScript
import { AppContainer } from 'react-hot-loader';
import React from 'react';
import { render } from 'react-dom';
import Root from './Root';
const rootEl = document.getElementById('root');
render(
<AppContainer>
<Root />
</AppContainer>,
rootEl
);
if (module.hot) {
module.hot.accept('./Root', () => {
// If you use Webpack 2 in ES modules mode, you can
// use <Root /> here rather than require() a <NextApp />.
const NextRoot = require('./Root').default;
render(
<AppContainer>
<NextRoot />
</AppContainer>,
rootEl
);
});
}