MCPcopy Create free account
hub / github.com/dot-agent/nextpy / get_component

Method get_component

nextpy/frontend/components/component.py:1257–1263  ·  view source on GitHub ↗

Render the component. Returns: The code to render the component.

(self)

Source from the content-addressed store, hash-verified

1255
1256 @lru_cache(maxsize=None) # noqa
1257 def get_component(self) -> Component:
1258 """Render the component.
1259
1260 Returns:
1261 The code to render the component.
1262 """
1263 return self.component_fn(*self.get_prop_vars())
1264
1265
1266def custom_component(

Callers 5

get_custom_componentsMethod · 0.95
test_get_componentFunction · 0.45
test_set_component_mapFunction · 0.45
test_pass_custom_stylesFunction · 0.45

Calls 1

get_prop_varsMethod · 0.95

Tested by 4

test_get_componentFunction · 0.36
test_set_component_mapFunction · 0.36
test_pass_custom_stylesFunction · 0.36