MCPcopy Index your code
hub / github.com/reactive-python/reactpy / App

Function App

src/py/reactpy/tests/test_core/test_layout.py:1225–1227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1223
1224 @component
1225 def App():
1226 items = use_state(["A", "B", "C"])
1227 return html._([Item(item, items, key=item) for item in items.value])
1228
1229 async with layout_runner(reactpy.Layout(App())) as runner:
1230 tree = await runner.render()

Callers 1

Calls 2

use_stateFunction · 0.90
ItemFunction · 0.70

Tested by

no test coverage detected