diff options
author | 2022-08-04 18:19:18 +0000 | |
---|---|---|
committer | 2022-08-04 18:19:18 +0000 | |
commit | 3362ec24780798d2f25a13f9c21c9f415d907fcd (patch) | |
tree | 5047dcd80cbda9349767c4eb15715680e8dd6cb9 /examples/framework-react/src/components/Counter.tsx | |
parent | f591150512903014461e4fa1be3bc53bd261af2f (diff) | |
download | astro-3362ec24780798d2f25a13f9c21c9f415d907fcd.tar.gz astro-3362ec24780798d2f25a13f9c21c9f415d907fcd.tar.zst astro-3362ec24780798d2f25a13f9c21c9f415d907fcd.zip |
[ci] format
Diffstat (limited to 'examples/framework-react/src/components/Counter.tsx')
-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); |