You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 363B

1234567891011121314
  1. // @flow
  2. import React from 'react';
  3. import ReactDOM from 'react-dom';
  4. import AlwaysOnTop from './AlwaysOnTop';
  5. // Render the main/root Component.
  6. // $FlowExpectedError
  7. ReactDOM.render(<AlwaysOnTop />, document.getElementById('react'));
  8. window.addEventListener(
  9. 'beforeunload',
  10. () => ReactDOM.unmountComponentAtNode(document.getElementById('react')));