From c3555e069d9c8b10bbc1ef834b6f7e5c8639f675 Mon Sep 17 00:00:00 2001 From: Robby6Strings Date: Tue, 9 Apr 2024 08:06:06 +1200 Subject: [PATCH] fix SignalCounter component --- sandbox/csr/src/components/SignalCounter.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sandbox/csr/src/components/SignalCounter.tsx b/sandbox/csr/src/components/SignalCounter.tsx index 02c18d08..7db82814 100644 --- a/sandbox/csr/src/components/SignalCounter.tsx +++ b/sandbox/csr/src/components/SignalCounter.tsx @@ -1,10 +1,9 @@ import { count } from "./signals/test" export const SignalCounter = () => { - const $count = count() const onInc = () => { - $count.value += 1 + count.value += 1 } - return + return }