Replace Next.js App Router with Vite, solid-js, and @solidjs/router. Convert all components, sections, hooks, and pages to SolidJS patterns (signals, onMount, For, A). Swap lucide-react for lucide-solid and add client-side routing with Vercel SPA rewrites. Co-authored-by: Mike Karl <karl.mike2002@gmail.com>
20 lines
335 B
TypeScript
20 lines
335 B
TypeScript
/* @refresh reload */
|
|
import { render } from "solid-js/web";
|
|
import { Router } from "@solidjs/router";
|
|
import App from "./App";
|
|
import "./globals.css";
|
|
|
|
const root = document.getElementById("root");
|
|
|
|
if (!root) {
|
|
throw new Error("Root element not found");
|
|
}
|
|
|
|
render(
|
|
() => (
|
|
<Router>
|
|
<App />
|
|
</Router>
|
|
),
|
|
root
|
|
);
|