summaryrefslogtreecommitdiff
path: root/examples/framework-react/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'examples/framework-react/src/components')
-rw-r--r--examples/framework-react/src/components/Counter.tsx (renamed from examples/framework-react/src/components/Counter.jsx)4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/framework-react/src/components/Counter.jsx b/examples/framework-react/src/components/Counter.tsx
index 97ddf34c7..6321469d3 100644
--- a/examples/framework-react/src/components/Counter.jsx
+++ b/examples/framework-react/src/components/Counter.tsx
@@ -1,7 +1,7 @@
-import React, { useState } from 'react';
+import { useState } from 'react';
import './Counter.css';
-export default function Counter({ children, count: initialCount }) {
+export default function Counter({ children, count: initialCount }: { children: JSX.Element, count: number }) {
const [count, setCount] = useState(initialCount);
const add = () => setCount((i) => i + 1);
const subtract = () => setCount((i) => i - 1);