Generate a component from a callable. Args: component: The component function to call or Component to return as-is. Returns: The generated component.
(component: Component | ComponentCallable)
| 849 | |
| 850 | @staticmethod |
| 851 | def _generate_component(component: Component | ComponentCallable) -> Component: |
| 852 | """Generate a component from a callable. |
| 853 | |
| 854 | Args: |
| 855 | component: The component function to call or Component to return as-is. |
| 856 | |
| 857 | Returns: |
| 858 | The generated component. |
| 859 | """ |
| 860 | from reflex.compiler.compiler import into_component |
| 861 | |
| 862 | return into_component(component) |
| 863 | |
| 864 | def add_page( |
| 865 | self, |