Files
solid-chargere/src/index.tsx
2026-03-01 13:13:04 +01:00

16 lines
396 B
TypeScript

/* @refresh reload */
import { render } from 'solid-js/web';
import 'solid-devtools';
import App from './App';
const root = document.getElementById('root');
if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
throw new Error(
'Root element not found. Did you forget to add it to your index.html? Or maybe the id attribute got misspelled?',
);
}
render(() => <App />, root!);