// 1. needsTacos "can" trigger re-render.
// 2. needsTacos doesn't trigger re-render (same goes for ref by useRef)
Wouldn't you need a "setNeedsTacos" to trigger a re-render?
Yes, you are right, Ryan.
Updating the state using setNeedsTacos "can" cause the re-render.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.