15 lines
363 B
JavaScript
15 lines
363 B
JavaScript
// @flow
|
|
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import AlwaysOnTop from './AlwaysOnTop';
|
|
|
|
// Render the main/root Component.
|
|
// $FlowExpectedError
|
|
ReactDOM.render(<AlwaysOnTop />, document.getElementById('react'));
|
|
|
|
window.addEventListener(
|
|
'beforeunload',
|
|
() => ReactDOM.unmountComponentAtNode(document.getElementById('react')));
|