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
lxsmnsyc
lxsmnsyc2y ago
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?
SilentRhetoric
SilentRhetoricOP2y ago
OK, so it is a convenience for authoring components with default props
Want results from more Discord servers?
Add your server