🎉 Initial commit

This commit is contained in:
Alexandre
2020-07-12 15:25:25 +02:00
commit d10efc1a87
14 changed files with 2573 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { render } from "solid-js/dom";
import "./index.css";
import App from "./App";
const rootEl = document.getElementById("root");
const dispose = render(() => App, rootEl);
// HMR stuff, this will be automatically removed during build
// /!\ You need to add "vite" in the "compilerOptions.types" of your tsconfig.json
// if you want to avoid type errors here
if (import.meta.hot) {
import.meta.hot.accept();
import.meta.hot.dispose(() => {
dispose();
rootEl.textContent = "";
});
}