summaryrefslogtreecommitdiff
path: root/examples/framework-react/src
diff options
context:
space:
mode:
authorGravatar Princesseuh <Princesseuh@users.noreply.github.com> 2022-08-04 18:19:18 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-08-04 18:19:18 +0000
commit3362ec24780798d2f25a13f9c21c9f415d907fcd (patch)
tree5047dcd80cbda9349767c4eb15715680e8dd6cb9 /examples/framework-react/src
parentf591150512903014461e4fa1be3bc53bd261af2f (diff)
downloadastro-3362ec24780798d2f25a13f9c21c9f415d907fcd.tar.gz
astro-3362ec24780798d2f25a13f9c21c9f415d907fcd.tar.zst
astro-3362ec24780798d2f25a13f9c21c9f415d907fcd.zip
[ci] format
Diffstat (limited to 'examples/framework-react/src')
-rw-r--r--examples/framework-react/src/components/Counter.tsx8
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);