---
title: "Discussion on \"Stop using useEffect for GSAP animations in React\" | Hashnode"
description: "Discussion on \"Stop using useEffect for GSAP animations in React\". Learn why you should switch from useEffect to useGSAP in your React and Next.js projects for cleaner, bug-free, and strict-mode safe animations"
url: "https://hashnode.com/posts/stop-using-useeffect-for-gsap-animations-in-react/6a50aab7aee085b663e45ef9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Stop using useEffect for GSAP animations in React](https://mohamed-ehab.hashnode.dev/stop-using-useeffect-for-gsap-animations-in-react?utm_source=hashnode&utm_medium=feed)

Learn why you should switch from useEffect to useGSAP in your React and Next.js projects for cleaner, bug-free, and strict-mode safe animations

Jul 10 · 4 min read · mohamed-ehab.hashnode.dev  
Read the article

-   [#gsap](https://hashnode.com/tag/gsap)
-   [#animation](https://hashnode.com/tag/animation)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#useeffect](https://hashnode.com/tag/useeffect)
-   [#hooks](https://hashnode.com/tag/hooks)
-   [#react-hooks](https://hashnode.com/tag/react-hooks)

## Written by

[Mohammed Ehab](https://hashnode.com/@mohammed--1)

@mohammed--1

  
[View profile](https://hashnode.com/@mohammed--1)

Full-Stack Web Developer | MERN Stack &amp; Next JS | React Native Enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
