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

Function FirstComponent

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

Source from the content-addressed store, hash-verified

958
959 @reactpy.component
960 def FirstComponent():
961 first_used_state.current = use_state("first")[0]
962 # reset state after unmount
963 use_effect(lambda: lambda: first_used_state.set_current(None))
964 return html.div()
965
966 @reactpy.component
967 def SecondComponent():

Callers 1

RootFunction · 0.85

Calls 3

use_stateFunction · 0.90
use_effectFunction · 0.90
set_currentMethod · 0.45

Tested by

no test coverage detected