mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
20 lines
476 B
TypeScript
20 lines
476 B
TypeScript
import { StrictMode } from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
import './app/i18n';
|
|
|
|
import { VenusRoutes } from './app';
|
|
|
|
const container = document.getElementById('root');
|
|
if (!container) {
|
|
throw new Error('No root container found');
|
|
}
|
|
const root = createRoot(container);
|
|
root.render(
|
|
<StrictMode>
|
|
<BrowserRouter>
|
|
<VenusRoutes />
|
|
</BrowserRouter>
|
|
</StrictMode>
|
|
);
|