#Conditional rendering help

2 messages · Page 1 of 1 (latest)

smoky coyote
#

i have a route where i have to use conditional rendering in the index.tsx file which includes 2 components (only 1 will be rendered under a certain condition), both components have to be linked to each other via a button which will switch between the 2, i stored a value in a signal, and i passed it as a prop and i want to change its value from the component file when a button is clicked, i feel like this won't work , what's the best solution

thin pewter
#

you feel like this won't work? Have you actually tried it?