diff --git a/examples/with-react/src/components/Counter.jsx b/examples/with-react/src/components/Counter.jsx index 488854fd3..3ab6728e7 100644 --- a/examples/with-react/src/components/Counter.jsx +++ b/examples/with-react/src/components/Counter.jsx @@ -1,18 +1,18 @@ -import React, { useState } from 'react' +import React, { useState } from 'react'; export default function Counter({ children }) { - const [count, setCount] = useState(0) - const add = () => setCount((i) => i + 1) - const subtract = () => setCount((i) => i - 1) + const [count, setCount] = useState(0); + const add = () => setCount((i) => i + 1); + const subtract = () => setCount((i) => i - 1); return ( <> -
+
{count}
-
{children}
+
{children}
- ) + ); }