From 0b8bca94549a7f11bb4a6bd2f9dd720cb8475cb1 Mon Sep 17 00:00:00 2001 From: Katja Lutz Date: Wed, 22 Jun 2022 21:32:44 +0200 Subject: [PATCH] chore: add default solid-start entries --- src/entry-client.tsx | 4 ++++ src/entry-server.tsx | 9 +++++++++ src/root.tsx | 26 ++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 src/entry-client.tsx create mode 100644 src/entry-server.tsx create mode 100644 src/root.tsx diff --git a/src/entry-client.tsx b/src/entry-client.tsx new file mode 100644 index 0000000..bbc51ed --- /dev/null +++ b/src/entry-client.tsx @@ -0,0 +1,4 @@ +import { hydrate } from "solid-js/web"; +import { StartClient } from "solid-start/entry-client"; + +hydrate(() => , document); diff --git a/src/entry-server.tsx b/src/entry-server.tsx new file mode 100644 index 0000000..93ffdbe --- /dev/null +++ b/src/entry-server.tsx @@ -0,0 +1,9 @@ +import { + StartServer, + createHandler, + renderAsync, +} from "solid-start/entry-server"; + +export default createHandler( + renderAsync((context) => ) +); diff --git a/src/root.tsx b/src/root.tsx new file mode 100644 index 0000000..10b1729 --- /dev/null +++ b/src/root.tsx @@ -0,0 +1,26 @@ +// @refresh reload +import { Links, Meta, Routes, Scripts } from "solid-start/root"; +import { ErrorBoundary } from "solid-start/error-boundary"; +import { Suspense } from "solid-js"; +import "./index.css"; + +export default function Root() { + return ( + + + + + + + + + + + + + + + + + ); +}