Some checks failed
Close stale issues and PRs / stale (push) Has been cancelled
14 lines
454 B
TypeScript
14 lines
454 B
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import AlwaysOnTop from './AlwaysOnTop';
|
|
|
|
// Render the main/root Component.
|
|
/* eslint-disable-next-line react/no-deprecated */
|
|
ReactDOM.render(<AlwaysOnTop />, document.getElementById('react'));
|
|
|
|
window.addEventListener(
|
|
'beforeunload',
|
|
/* eslint-disable-next-line react/no-deprecated */
|
|
() => ReactDOM.unmountComponentAtNode(document.getElementById('react') ?? document.body));
|