summaryrefslogtreecommitdiff
path: root/examples/framework-preact/src/components/Counter.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/framework-preact/src/components/Counter.tsx')
-rw-r--r--examples/framework-preact/src/components/Counter.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/framework-preact/src/components/Counter.tsx b/examples/framework-preact/src/components/Counter.tsx
index c2b065e3c..5d702fb42 100644
--- a/examples/framework-preact/src/components/Counter.tsx
+++ b/examples/framework-preact/src/components/Counter.tsx
@@ -2,7 +2,7 @@ import { h, Fragment } from 'preact';
import './Counter.css';
export default function Counter({ children, count }) {
- const add = () => count.value++
+ const add = () => count.value++;
const subtract = () => count.value--;
return (