---
title: "Discussion on \"How to do cleanup in React’s UseEffect Hook — Explained\" | Hashnode"
description: "Discussion on \"How to do cleanup in React’s UseEffect Hook — Explained\". It is one of the react performance optimization techniques. React’s useEffect cleanup function saves applications from unwanted behaviours such as memory leaks by cleaning up effects. It gets called when the component unmounts. In this way, we can op..."
url: "https://hashnode.com/posts/how-to-do-cleanup-in-reacts-useeffect-hook-explained/65a53306d1e06d71a3274eba"
---

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

Discussion

# [How to do cleanup in React’s UseEffect Hook — Explained](https://akhtarvahid.hashnode.dev/how-to-do-cleanup-in-reacts-useeffect-hook-explained?utm_source=hashnode&utm_medium=feed)

It is one of the react performance optimization techniques. React’s useEffect cleanup function saves applications from unwanted behaviours such as memory leaks by cleaning up effects. It gets called when the component unmounts. In this way, we can op...

Jan 15, 2024 · 3 min read · akhtarvahid.hashnode.dev  
Updated Jan 18, 2024  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#developer](https://hashnode.com/tag/developer)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#frontend](https://hashnode.com/tag/frontend)

## Written by

[Vahid Akhtar](https://hashnode.com/@akhtarvahid)

@akhtarvahid · Bengaluru, India

  
[View profile](https://hashnode.com/@akhtarvahid)

Software Engineer | UI developer | Full-stack developer

Software Engineer @YaraInternational | Full-stack developer | Problem solver |...

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
