mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 17:46:18 +08:00
20 lines
477 B
TypeScript
20 lines
477 B
TypeScript
/* eslint-disable filename-rules/match */
|
|
import { StrictMode } from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
|
|
import App from './app';
|
|
|
|
const container = document.getElementById('root');
|
|
if (!container) {
|
|
throw new Error('No root container found');
|
|
}
|
|
const root = createRoot(container);
|
|
root.render(
|
|
<StrictMode>
|
|
<BrowserRouter>
|
|
<App />
|
|
</BrowserRouter>
|
|
</StrictMode>
|
|
);
|