SolidJSS
SolidJSโ€ข16mo agoโ€ข
10 replies
Vex

Are component props reactive?

Hi,
I've used solid for some time now, and just need some clarification on how props are handled in regards to the reactivity graph.
My question can be boiled down to:
If a give a prop the value of some Accessor (propName={accessor()}) - will the sub component always update based on where and how that prop is used in the sub component?
Similarly, if I give a prop, which changes state, but isn't given as a signal accessed through the Accessor, will this update the sub component?

Also, what is the convention for passing props? As signals, or as actual values, which may or may not come from a signal?
Was this page helpful?