DEV Community

loading...

Discussion on: React - useRef used in conjunction with useEffect

Collapse
jamesthomson profile image
James Thomson

Alternately, if you don't need to display the count, use a useRef instead and save yourself a re-render.