Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/reactive-python/reactpy
/ Child
Function
Child
src/py/reactpy/tests/test_core/test_layout.py:113–115 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
111
112
@reactpy.component
113
def
Child():
114
state, child_set_state.current = reactpy.hooks.use_state(0)
115
return
reactpy.html.div(state)
116
117
def
make_parent_model(state, model):
118
return
{
Callers
3
Parent
Function · 0.70
Main
Function · 0.70
Root
Function · 0.70
Calls
5
use_state
Function · 0.90
use_effect
Function · 0.90
use_force_render
Function · 0.90
use_state
Method · 0.80
set_current
Method · 0.45
Tested by
no test coverage detected