Idiomatic Props
ATM I'm passing a
However I could also do it with
The second case seems more idiomatic?
Signal<T> to a component, which of course boils down to [() => T, (value: T) => void].However I could also do it with
[T, (value: T) => void] and use the reactivity provided by prop instead of relying on a Signal.The second case seems more idiomatic?
