diff options
Diffstat (limited to 'examples/framework-react/src/components')
| -rw-r--r-- | examples/framework-react/src/components/Counter.tsx | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/examples/framework-react/src/components/Counter.tsx b/examples/framework-react/src/components/Counter.tsx index 6321469d3..cc416d3f1 100644 --- a/examples/framework-react/src/components/Counter.tsx +++ b/examples/framework-react/src/components/Counter.tsx @@ -1,7 +1,13 @@  import { useState } from 'react';  import './Counter.css'; -export default function Counter({ children, count: initialCount }: { children: JSX.Element, count: number }) { +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); | 
