Skip to content

Commit

Permalink
fix SignalCounter component
Browse files Browse the repository at this point in the history
  • Loading branch information
LankyMoose committed Apr 8, 2024
1 parent 5063e41 commit c3555e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sandbox/csr/src/components/SignalCounter.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { count } from "./signals/test"

export const SignalCounter = () => {
const $count = count()
const onInc = () => {
$count.value += 1
count.value += 1
}

return <button onclick={onInc}>{$count}</button>
return <button onclick={onInc}>{count}</button>
}

0 comments on commit c3555e0

Please sign in to comment.