2018-05-03 17:36:29 +00:00
|
|
|
// @flow
|
|
|
|
|
2017-08-04 08:15:11 +00:00
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
|
|
|
|
|
|
|
import AlwaysOnTop from './AlwaysOnTop';
|
|
|
|
|
|
|
|
// Render the main/root Component.
|
2018-05-03 17:36:29 +00:00
|
|
|
// $FlowExpectedError
|
|
|
|
ReactDOM.render(<AlwaysOnTop />, document.getElementById('react'));
|
|
|
|
|
|
|
|
window.addEventListener(
|
|
|
|
'beforeunload',
|
|
|
|
() => ReactDOM.unmountComponentAtNode(document.getElementById('react')));
|