---
title: "Yihshen Lee (@AlexTheCoder) | Hashnode"
description: "a web development beginner. Read the latest articles by Yihshen Lee on Hashnode."
url: "https://hashnode.com/@AlexTheCoder"
---

@AlexTheCoder

# Yihshen Lee

@AlexTheCoder · Joined January 2022

a web development beginner

### [Does the object reinitialized when the component re-renders in React](https://alexthecoder.hashnode.dev/does-the-object-reinitialized-when-the-component-re-renders-in-react?utm_source=hashnode&utm_medium=feed)

In short answer, yes! so in this specific case where you use any non-primitive (object or array) as a dependency of useEffect. It cause the useEffect to fire the code everytime the component re-renders. The component re-renders everytime the butt...

1 min read · [alexthecoder.hashnode.dev](https://alexthecoder.hashnode.dev/does-the-object-reinitialized-when-the-component-re-renders-in-react?utm_source=hashnode&utm_medium=feed)

[Apr 11, 2024](https://hashnode.com/posts/does-the-object-reinitialized-when-the-component-re-renders-in-react/661755c056eac0db2522f84a)
