Twitter | Search | |
Sagiv Ben Giat
BTW, the name useRef give us a hint. We are not creating a ref, we just *use* it. It was created for us by someone else outside our context. Imagine that it stored on the window or maybe even passed as an argument. Mutating it will be crystal clear that this is a side effect.
Reply Retweet Like More
Replying to