You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edifice doesn't currently have any way to do that. The best we've got is that we can use a @contextmanager decorated function to yield and then render children.
fromcontextlibimportcontextmanager@contextmanagerdefTrailComponent():
""" Example:: with TrailComponent(): TrailMain() TrailDivider() TrailProject() """withView():
yield
The text was updated successfully, but these errors were encountered:
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: