---
title: "Discussion on \"Why you should always Cleanup Side Effects in React useEffect and How to Cleanup\" | Hashnode"
description: "Discussion on \"Why you should always Cleanup Side Effects in React useEffect and How to Cleanup\". Side effects such as API calls, DOM updates, timeouts and so on, happen a lot in React applications. Here is why you should also clean them up."
url: "https://hashnode.com/posts/why-you-should-always-cleanup-side-effects-in-react-useeffect-and-how-to-cleanup/62527efc92d73e7055c192e5"
---

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

Discussion

# [Why you should always Cleanup Side Effects in React useEffect and How to Cleanup](https://dillion.hashnode.dev/why-you-should-always-cleanup-side-effects-in-react-useeffect-and-how-to-cleanup?utm_source=hashnode&utm_medium=feed)

Side effects such as API calls, DOM updates, timeouts and so on, happen a lot in React applications. Here is why you should also clean them up.

Apr 10, 2022 · 6 min read · dillion.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#apis](https://hashnode.com/tag/apis)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Dillion Megida](https://hashnode.com/@dillion)

@dillion · Nigeria.

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

Software Engineer and Technical Writer

Hey, I'm Dillion Megida--a Software Engineer and Content Creator from Nigeria. I love building, learning and teaching web development concepts and practices. I also have a YouTube channel where I talk about Tech and my life as a software engineer here: https://bit.ly/2RMfqfX

## Responses 1

Markdown supported · ⌘↵ to post

[Shrijin](https://hashnode.com/@Shrijin)

[Apr 21, 2022](https://hashnode.com/posts/why-you-should-always-cleanup-side-effects-in-react-useeffect-and-how-to-cleanup/62527efc92d73e7055c192e5/comment/6260eee5313088464cfc52c6)

awesome, very helpful~

[Dillion Megida](https://hashnode.com/@dillion)

[Apr 21, 2022](https://hashnode.com/posts/why-you-should-always-cleanup-side-effects-in-react-useeffect-and-how-to-cleanup/62527efc92d73e7055c192e5/comment/6260eee5313088464cfc52c6#reply-62610a5b313088464cfc596d)

glad you found it so :)
