mirror of https://github.com/usbharu/Hideout.git
16 lines
402 B
TypeScript
16 lines
402 B
TypeScript
/* @refresh reload */
|
|
import {render} from 'solid-js/web';
|
|
|
|
// import './index.css';
|
|
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 mispelled?',
|
|
);
|
|
}
|
|
|
|
render(() => <App/>, root!);
|