Created fresh deno project

This commit is contained in:
Kevin FEDYNA
2024-12-02 14:36:52 +01:00
parent b3fbe6b6c8
commit 9a97591bda
20 changed files with 379 additions and 4 deletions
+16
View File
@@ -0,0 +1,16 @@
import type { Signal } from "@preact/signals";
import { Button } from "../components/Button.tsx";
interface CounterProps {
count: Signal<number>;
}
export default function Counter(props: CounterProps) {
return (
<div class="flex gap-8 py-6">
<Button onClick={() => props.count.value -= 1}>-1</Button>
<p class="text-3xl tabular-nums">{props.count}</p>
<Button onClick={() => props.count.value += 1}>+1</Button>
</div>
);
}