Files
DndGamePlayer/app/renderer/editor/main.tsx
T
2026-05-11 22:20:14 +08:00

20 lines
470 B
TypeScript

import React from 'react';
import { createRoot } from 'react-dom/client';
import '../shared/ui/globals.css';
import { EditorApp } from './EditorApp';
import { EditorI18nProvider } from './i18n/EditorI18nContext';
const rootEl = document.getElementById('root');
if (!rootEl) {
throw new Error('Missing #root element');
}
createRoot(rootEl).render(
<React.StrictMode>
<EditorI18nProvider>
<EditorApp />
</EditorI18nProvider>
</React.StrictMode>,
);