Is it a good practice to pass Signals to component props ? #294
-
Hello, const count = useSignal(0)
return <Counter count={count}> // ...Counter component
const doubleCount = useComputed(() => count.value*2)
function onClick(() => count.value++) |
Beta Was this translation helpful? Give feedback.
Answered by
marvinhagemeister
Jan 10, 2023
Replies: 0 comments 2 replies
-
Yes, that's basically the whole point of signals. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dolie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, that's basically the whole point of signals.