docs: include missing imports in the getting started tutorial (#3349)

The Countdown code in the tutorial doesn't work when copied and pasted
because the imports for useSignal and useEffect are missing. Adding the
missing imports will help those following the tutorial to have a better
experience.
This commit is contained in:
Alejandro Martínez
2025-09-06 10:32:22 +02:00
committed by GitHub
parent a72472095d
commit 2d3f28a960
+3
View File
@@ -76,6 +76,9 @@ in the browser.
Create a new file at `islands/Countdown.tsx`
```tsx islands/Countdown.tsx
import { useSignal } from "@preact/signals";
import { useEffect } from "preact/hooks";
export function Countdown(props: { target: string }) {
const count = useSignal(10);