2 ms·
If you're doing anything animation related, there is no point in using React's useState because it causes re-renders. The right approach here is to use useRef.
by dmak 4y ago
If you're doing anything animation related, there is no point in using React's useState because it causes re-renders. The right approach here is to use useRef.