From 8dceb5eb36226f1d097d02c47e1b24231dc333d1 Mon Sep 17 00:00:00 2001
From: Bjorn Lu <bjornlu.dev@gmail.com>
Date: Wed, 13 Mar 2024 17:35:33 +0800
Subject: Fix check example CI fail (#10415)

---
 examples/framework-multiple/src/components/react/ReactCounter.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'examples/framework-multiple/src/components/react/ReactCounter.tsx')

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);
-- 
cgit v1.2.3

