Register custom component props without default values
Currently, I need to give default values to component properties if I want them to be registered:
But that's really not convenient. Is there a way to register props without default values?
1 Reply
this is pretty cleanly handled by types:
and if you want your component to accept children you can use
ParentComponent
instead of Component