MCPcopy
hub / github.com/reflex-dev/reflex / _generate_component

Method _generate_component

reflex/app.py:851–862  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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,

Callers 2

add_pageMethod · 0.95
test_generate_componentFunction · 0.80

Calls 1

into_componentFunction · 0.90

Tested by 1

test_generate_componentFunction · 0.64