Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
46
def
use_state(initial_value: Callable[[], _Type]) -> State[_Type]: ...
47
48
49
@overload
Callers
15
FirstComponent
Function · 0.90
SecondComponent
Function · 0.90
Parent
Function · 0.90
Child
Function · 0.90
Root
Function · 0.90
Item
Function · 0.90
App
Function · 0.90
use_toggle
Function · 0.90
use_counter
Function · 0.90
HotSwap
Function · 0.90
Scene
Function · 0.90
Counter
Function · 0.90
Calls
3
State
Class · 0.90
_use_const
Function · 0.85
_CurrentState
Class · 0.85
Tested by
7
FirstComponent
Function · 0.72
SecondComponent
Function · 0.72
Parent
Function · 0.72
Child
Function · 0.72
Root
Function · 0.72
Item
Function · 0.72
App
Function · 0.72