Initial version for solidjs and vite as build tool

This commit is contained in:
Guntis Smaukstelis
2023-05-14 22:07:16 +03:00
parent bbf1eb0c01
commit 16c9714f8a
19 changed files with 3682 additions and 19 deletions
+15
View File
@@ -0,0 +1,15 @@
/* @refresh reload */
import { render } from 'solid-js/web';
import './css/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!);