04c75cd725
Guard TipTap getHTML under StrictMode, wrap secondary window roots in WindowErrorBoundary, and add stability regression tests. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
531 B
TypeScript
21 lines
531 B
TypeScript
import React from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
|
|
import '../shared/ui/globals.css';
|
|
import { WindowErrorBoundary } from '../shared/ui/WindowErrorBoundary';
|
|
|
|
import { PresentationApp } from './PresentationApp';
|
|
|
|
const rootEl = document.getElementById('root');
|
|
if (!rootEl) {
|
|
throw new Error('Missing #root element');
|
|
}
|
|
|
|
createRoot(rootEl).render(
|
|
<React.StrictMode>
|
|
<WindowErrorBoundary title="Презентация">
|
|
<PresentationApp />
|
|
</WindowErrorBoundary>
|
|
</React.StrictMode>,
|
|
);
|