Share: sync

This commit is contained in:
Frank
2025-05-23 15:57:33 -04:00
committed by Dax Raad
parent 34a2dcb80a
commit d51b4263ab
25 changed files with 1395 additions and 338 deletions

View File

@@ -0,0 +1,24 @@
/* @refresh reload */
import { render } from "solid-js/web"
import { Router, Route } from "@solidjs/router"
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 misspelled?",
)
}
render(
() => (
<Router>
<Route path="/share/:id" component={App} />
<Route path="/" component={App} />
</Router>
),
root!,
)