SolidJSS
SolidJSโ€ข3y agoโ€ข
4 replies
Jakob

Resetting state in child component

I have a form that takes default values as a prop. But the default values can change when a different dataset is selected in the parent, in which case I want to reset the form state and provide new default values. In React, you could use key for this, but that doesn't exist in Solid. Is there another solution?
Was this page helpful?