diff options
Diffstat (limited to 'examples/framework-multiple/src/components/PreactCounter.tsx')
-rw-r--r-- | examples/framework-multiple/src/components/PreactCounter.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/framework-multiple/src/components/PreactCounter.tsx b/examples/framework-multiple/src/components/PreactCounter.tsx index 261f275a1..2fb0a54b9 100644 --- a/examples/framework-multiple/src/components/PreactCounter.tsx +++ b/examples/framework-multiple/src/components/PreactCounter.tsx @@ -1,6 +1,8 @@ +/** @jsxImportSource preact */ + import { useState } from 'preact/hooks'; -/** a counter written in Preact */ +/** A counter written with Preact */ export function PreactCounter({ children }) { const [count, setCount] = useState(0); const add = () => setCount((i) => i + 1); |