[+] Init app

This commit is contained in:
Azalea Gui
2023-02-09 18:36:19 -05:00
parent cf1ece9053
commit 9f8b79ce45
7 changed files with 1108 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
/* @refresh reload */
import 'windi.css';
import { render } from 'solid-js/web';
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!);