diff options
Diffstat (limited to 'examples/framework-preact/src/components/Counter.tsx')
-rw-r--r-- | examples/framework-preact/src/components/Counter.tsx | 2 |
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 ( |