summaryrefslogtreecommitdiff
path: root/examples/framework-multiple/src/components/react/ReactCounter.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/framework-multiple/src/components/react/ReactCounter.tsx')
-rw-r--r--examples/framework-multiple/src/components/react/ReactCounter.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/framework-multiple/src/components/react/ReactCounter.tsx b/examples/framework-multiple/src/components/react/ReactCounter.tsx
index 1cff97917..84681035d 100644
--- a/examples/framework-multiple/src/components/react/ReactCounter.tsx
+++ b/examples/framework-multiple/src/components/react/ReactCounter.tsx
@@ -1,7 +1,9 @@
-import { useState } from 'react';
+/** @jsxImportSource react */
+
+import { useState, type ReactNode } from 'react';
/** A counter written with React */
-export function Counter({ children }) {
+export function Counter({ children }: { children?: ReactNode }) {
const [count, setCount] = useState(0);
const add = () => setCount((i) => i + 1);
const subtract = () => setCount((i) => i - 1);