20 lines
575 B
Python
20 lines
575 B
Python
"""Top-level component that wraps the entire app."""
|
|
from reflex.components.component import Component
|
|
from reflex.components.layout.fragment import Fragment
|
|
from reflex.vars import Var
|
|
|
|
|
|
class AppWrap(Fragment):
|
|
"""Top-level component that wraps the entire app."""
|
|
|
|
@classmethod
|
|
def create(cls) -> Component:
|
|
"""Create a new AppWrap component.
|
|
|
|
Returns:
|
|
A new AppWrap component containing {children}.
|
|
"""
|
|
return super().create(
|
|
Var.create("{children}", _var_is_local=False, _var_is_string=False)
|
|
)
|