app_wrap.py 444 B

1234567891011121314151617
  1. """Top-level component that wraps the entire app."""
  2. from reflex.components.component import Component
  3. from .bare import Bare
  4. class AppWrap(Bare):
  5. """Top-level component that wraps the entire app."""
  6. @classmethod
  7. def create(cls) -> Component:
  8. """Create a new AppWrap component.
  9. Returns:
  10. A new AppWrap component containing {children}.
  11. """
  12. return super().create(contents="{children}")