mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
12 lines
270 B
TypeScript
12 lines
270 B
TypeScript
import './main.css';
|
|
|
|
import { createRoot } from 'react-dom/client';
|
|
|
|
import { App } from './app';
|
|
|
|
const rootElement = document.getElementById('root');
|
|
if (!rootElement) {
|
|
throw new Error('Failed to find the root element');
|
|
}
|
|
createRoot(rootElement).render(<App />);
|