render.rs icon indicating copy to clipboard operation
render.rs copied to clipboard

Optional parameters?

Open vpzomtrrfrt opened this issue 5 years ago • 1 comments

I don't see any way currently to use optional parameters. This would be a nice addition, though I'm not sure how it would technically work

vpzomtrrfrt avatar Jul 06 '20 04:07 vpzomtrrfrt

Maybe something like <SomeComponent foo={5} {..Default::default()} />, similar to struct initialization?

vpzomtrrfrt avatar Jul 08 '20 14:07 vpzomtrrfrt