DEV Community


Discussion on: React - useRef used in conjunction with useEffect

gyandeeps profile image
Gyandeep Singh Author • 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.

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

I see your point. 👍