mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
19 lines
416 B
TypeScript
19 lines
416 B
TypeScript
import { assertExists } from '@blocksuite/global/utils';
|
|
import { StrictMode } from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
|
|
async function main() {
|
|
await import('./bootstrap/before-app');
|
|
const { App } = await import('./app');
|
|
const root = document.getElementById('app');
|
|
assertExists(root);
|
|
|
|
createRoot(root).render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>
|
|
);
|
|
}
|
|
|
|
await main();
|