diff --git a/packages/react/README.md b/packages/react/README.md index f5a8fdaf..708e889e 100644 --- a/packages/react/README.md +++ b/packages/react/README.md @@ -66,7 +66,7 @@ function Component() { const rafId = requestAnimationFrame(update) return () => cancelAnimationFrame(rafId) - }) + }, []) return ( @@ -95,7 +95,7 @@ function Component() { gsap.ticker.add(update) return () => gsap.ticker.remove(update) - }) + }, []) return (