From 3c4e6c5913f5697a04dcc0a8d6c9b9166aee0be9 Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Mon, 28 Jun 2021 12:04:07 +0000 Subject: [PATCH] [ci] yarn format --- examples/with-react/src/components/Counter.jsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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}
- ) + ); }