Props/Default Defaults
The tutorial example at https://www.solidjs.com/tutorial/props_defaults does not seem to behave any differently before and after being solved. What is the difference?
SolidJS
Solid is a purely reactive library. It was designed from the ground up with a reactive core. It's influenced by reactive principles developed by previous libraries.
2 Replies
the difference is how the default value is applied
Would you rather do
props.x ?? y
all the time, whenever you access props.x
, or just mergeProps?OK, so it is a convenience for authoring components with default props