import { createRoot } from 'react-dom/client'; import App from './App'; import { i18nReady } from './i18n'; import { BugsinkErrorBoundary, initBugsink } from './lib/bugsink'; import './index.css'; import './hooks/usePlausible'; initBugsink(); const container = document.getElementById('root'); if (!container) { throw new Error('Root element not found'); } const root = container; function AppErrorFallback() { return (

Something went wrong

Refresh the page to try again.

); } function renderApp() { const hasPrerenderedMarkup = root.children.length > 0; if (hasPrerenderedMarkup) { root.textContent = ''; } root.removeAttribute('data-prerender-path'); createRoot(root).render( }> ); } void i18nReady.then(renderApp);