From 2d3f28a960d0c9b836ee7498b9404310b99de07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Mart=C3=ADnez?= <81448316+jalejomg@users.noreply.github.com> Date: Sat, 6 Sep 2025 03:32:22 -0500 Subject: [PATCH] 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. --- docs/canary/getting-started/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/canary/getting-started/index.md b/docs/canary/getting-started/index.md index acfb8fda..3e283d3a 100644 --- a/docs/canary/getting-started/index.md +++ b/docs/canary/getting-started/index.md @@ -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);