DEV Community

Discussion on: React - useRef used in conjunction with useEffect

Collapse
 
gyandeeps profile image
Gyandeep Singh • Edited

This makes sense. I just used this code as an example to demonstrate the concept.. I will update the example later to be more specific. Like maybe if you had to send the count to the API call.

Collapse
 
hangindev profile image
Jason Leung 🧗‍♂️👨‍💻

I see your point. 👍