---
title: "Discussion on \"useEffect Hook\" | Hashnode"
description: "Discussion on \"useEffect Hook\". What is    useEffect?\nuseEffect is a React hook which is used to handle side effects which occur in a component due to state change. It's basic syntax is useEffect(callback, [...dependencies]). \nDependecy array\nBy default useEffect runs every time th..."
url: "https://hashnode.com/posts/useeffect-hook/632f45f53ac18d0d78a02671"
---

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

Discussion

# [useEffect Hook](https://unv.hashnode.dev/useeffect-hook?utm_source=hashnode&utm_medium=feed)

What is useEffect? useEffect is a React hook which is used to handle side effects which occur in a component due to state change. It's basic syntax is useEffect(callback, \[...dependencies\]). Dependecy array By default useEffect runs every time th...

Sep 24, 2022 · 2 min read · unv.hashnode.dev  
Read the article

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

## Written by

[Uday Narayan Vishwakarma](https://hashnode.com/@Udaynarayan)

@Udaynarayan

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

ReactJs developer

## Responses 1

Markdown supported · ⌘↵ to post

[Ghost](https://hashnode.com/@incognito-)

[Oct 14, 2022](https://hashnode.com/posts/useeffect-hook/632f45f53ac18d0d78a02671/comment/63499f0ef54817496976f03f)

This is a great tutorial Uday! I'm still trying to wrap my head around useEffect cleanup [,](https://www.youtube.com/watch?v=6MsWGuRhaCg) as I've heard it shouldn't be always done, just in cases where memory leaks are guaranteed to happen.
