Sign up
Sign in
…use watch in this example strictly speaking because we can simply create visible as a computed, but watch lets us execute other code when the value changes. We could have also passed in the selected value as a prop instead, but this creates a dependency b…
watch
visible
computed
prop
Charles Chen
Amy Blankenship
Follow
--
1
Share
This is useEffect
Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.
Help
Status
About
Careers
Press
Blog
Privacy
Terms
Text to speech
Teams