()
| 965 | |
| 966 | @reactpy.component |
| 967 | def SecondComponent(): |
| 968 | second_used_state.current = use_state("second")[0] |
| 969 | # reset state after unmount |
| 970 | use_effect(lambda: lambda: second_used_state.set_current(None)) |
| 971 | return html.div() |
| 972 | |
| 973 | async with reactpy.Layout(Root()) as layout: |
| 974 | await layout.render() |
no test coverage detected