import { createRoot } from 'react-dom' ; import { App } from './app' ; globalThis ; const rootEl = document . getElementById ( 'app-root' ) ; if ( rootEl !== null ) { rootEl . innerHTML = '' ; const root = createRoot ( rootEl ) ; root . render ( < App />); }