mirror of
https://github.com/morten-olsen/plainidx.git
synced 2026-02-08 01:06:24 +01:00
15 lines
294 B
TypeScript
15 lines
294 B
TypeScript
import { StrictMode } from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import { App } from './app.tsx';
|
|
|
|
const root = document.createElement('div');
|
|
if (!root) {
|
|
throw new Error('Root element not found');
|
|
}
|
|
|
|
createRoot(root).render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
);
|