-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@component children #139
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We would like to be able to write a
@component
which can have children.In React, this is done by “the special
children
prop to pass children elements directly into their output.” https://legacy.reactjs.org/docs/composition-vs-inheritance.html#containmentEdifice doesn't currently have any way to do that. The best we've got is that we can use a
@contextmanager
decorated function toyield
and then render children.The text was updated successfully, but these errors were encountered: