import { hydrateRoot } from 'react-dom/client'; import { App } from '@/App'; import '@/index.css'; const root = document.getElementById('root'); if (!root) { throw new Error('The static page is missing its #root element.'); } hydrateRoot(root, );