import '../bootstrap' import React from 'react' import { createRoot } from 'react-dom/client' import DashboardPage from './DashboardPage' const rootElement = document.getElementById('dashboard-root') function parseJsonObject(value) { if (!value) { return {} } try { const parsed = JSON.parse(value) return parsed && typeof parsed === 'object' ? parsed : {} } catch { return {} } } if (rootElement) { const root = createRoot(rootElement) root.render( ) }