---
title: "Discussion on \"Understanding useEffect and dependencies array in React\" | Hashnode"
description: "Discussion on \"Understanding useEffect and dependencies array in React\". I made a simple react app in CodeSandbox to demonstrate the different usage of useEffect below.\nNote that the app is using Chakra UI for styling but it's not relevant in this article.\nhttps://codesandbox.io/s/useeffect-demo-lgi9b8\n \nThe app can do 3 ..."
url: "https://hashnode.com/posts/understanding-useeffect-and-dependencies-array-in-react/646dd013a77b0788c85b846d"
---

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

Discussion

# [Understanding useEffect and dependencies array in React](https://blog.afrieirham.com/understanding-useeffect-and-dependencies-array-in-react?utm_source=hashnode&utm_medium=feed)

I made a simple react app in CodeSandbox to demonstrate the different usage of useEffect below. Note that the app is using Chakra UI for styling but it's not relevant in this article. https://codesandbox.io/s/useeffect-demo-lgi9b8 The app can do 3 ...

May 24, 2023 · 4 min read · blog.afrieirham.com  
Read the article

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

## Written by

[Afrie Irham](https://hashnode.com/@afrieirham)

@afrieirham · KL, Malaysia

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

hacking facebook

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
