14 lines
357 B
TypeScript
14 lines
357 B
TypeScript
import { StrictMode } from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import { CompanionApp } from './app/CompanionApp';
|
|
|
|
const rootElement = document.getElementById('root');
|
|
if (!rootElement) {
|
|
throw new Error('Root element #root not found in DOM');
|
|
}
|
|
|
|
createRoot(rootElement).render(
|
|
<StrictMode>
|
|
<CompanionApp />
|
|
</StrictMode>,
|
|
);
|