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

Function use_state

src/py/reactpy/reactpy/core/hooks.py:46–46  ·  view source on GitHub ↗
(initial_value: Callable[[], _Type])

Source from the content-addressed store, hash-verified

44
45@overload
46def use_state(initial_value: Callable[[], _Type]) -> State[_Type]: ...
47
48
49@overload

Callers 15

FirstComponentFunction · 0.90
SecondComponentFunction · 0.90
ParentFunction · 0.90
ChildFunction · 0.90
RootFunction · 0.90
ItemFunction · 0.90
AppFunction · 0.90
use_toggleFunction · 0.90
use_counterFunction · 0.90
HotSwapFunction · 0.90
SceneFunction · 0.90
CounterFunction · 0.90

Calls 3

StateClass · 0.90
_use_constFunction · 0.85
_CurrentStateClass · 0.85

Tested by 7

FirstComponentFunction · 0.72
SecondComponentFunction · 0.72
ParentFunction · 0.72
ChildFunction · 0.72
RootFunction · 0.72
ItemFunction · 0.72
AppFunction · 0.72