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

Function Root

src/py/reactpy/tests/test_html.py:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12 @component
13 def Root():
14 is_mounted, toggle_is_mounted.current = use_toggle(True)
15 return html.div(
16 html.div({"id": "mount-state", "data_value": False}),
17 HasScript() if is_mounted else html.div(),
18 )
19
20 @component
21 def HasScript():

Callers

nothing calls this directly

Calls 2

use_toggleFunction · 0.90
HasScriptFunction · 0.85

Tested by

no test coverage detected