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

Function SimpleComponent

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

Source from the content-addressed store, hash-verified

81
82 @reactpy.component
83 def SimpleComponent():
84 tag, set_state_hook.current = reactpy.hooks.use_state("div")
85 return reactpy.vdom(tag)
86
87 async with reactpy.Layout(SimpleComponent()) as layout:
88 update_1 = await layout.render()

Callers 1

test_simple_layoutFunction · 0.85

Calls 1

use_stateMethod · 0.80

Tested by

no test coverage detected