From aa7e28e799ce19f04c6c33782ea8d25ef4c3bb98 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 17 Jan 2025 15:30:04 +0100 Subject: feat(Server): Add frontend starter --- server/frontend/src/Test.tsx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 server/frontend/src/Test.tsx (limited to 'server/frontend/src/Test.tsx') diff --git a/server/frontend/src/Test.tsx b/server/frontend/src/Test.tsx new file mode 100644 index 0000000..6eee2d6 --- /dev/null +++ b/server/frontend/src/Test.tsx @@ -0,0 +1,23 @@ +import {A, createAsync} from "@solidjs/router"; +import {client} from "./api.js"; +import {For, Suspense} from "solid-js"; + +export default function Test() { + let items = createAsync(() => client.GET("/item", { + params: { + query: { + itemId: ['HYPERION', 'BAT_WAND'] + } + } + })) + return <> + Test page Back to main +
+ +

Here are all Items:

+ + { ([id, name]) =>
  • {id}: {name}
  • } +
    +
    + +} \ No newline at end of file -- cgit