()
| 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(): |
no test coverage detected