lets fuckin go
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
import { A } from "@solidjs/router";
|
||||
import { createResource, For } from "solid-js";
|
||||
import { createEffect, createResource, For } from "solid-js";
|
||||
import * as Games from "../db/Games";
|
||||
import api from "../api";
|
||||
|
||||
export default () => {
|
||||
const [games] = createResource(() => Games.queryAll());
|
||||
const [ping] = createResource(async () =>
|
||||
api.ping.$get().then(async (res) => await res.text())
|
||||
);
|
||||
|
||||
return (
|
||||
<div style={{ padding: "20px" }}>
|
||||
<For each={games()}>
|
||||
{ping()}
|
||||
{/* <For each={games()}>
|
||||
{(game) => <A href={`/${game.name}`}>{game.name}</A>}
|
||||
</For>
|
||||
</For> */}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user