const [count, setCont] = useState(0)

///

const animate = () => {
   setCount(e => e + 1)
   requestAnimationFrame(animate)
}

이런식으로 써도 성능 문제 없음?