SolidJSS
SolidJS3mo ago
1 reply
Lȩge

Idiomatic Props

ATM I'm passing a 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?
Was this page helpful?