#18 React useEffect Hook with Object Dependency

Published: 04 February 2024
on channel: Deeecode
1,414
20

When working with the useEffect hook, you want to be careful of using objects as dependencies. That's because, even when the structure of your objects don't change, your useEffect might be running multiple times.

I explain with an example in this video, and also show you a better way of depending on objects.


Resources:
Course Website: https://simplereactjs.com/
   • What Exactly Are SIDE EFFECTS? And Why Do ...  

You can find the code used in this video here: https://github.com/dillionmegida/reac...

Join my discord here: https://deeecode.com/discord

Timestamp:
00:00 Side Effects in Programming
03:46 Side Effects in a Component
04:25 useEffect Syntax
09:17 Fetch API Side Effect
13:00 Dependencies can be props
14:52 Passing dependencies correctly
17:56 Wrap up

_____

Subscribe to My Channel: https://bit.ly/deeecode

_____

🌟 About Me:
Dillion Megida, creator of DEEECODE, is a Software Engineer, Developer Advocate and a Content Creator passionate about simplifying topics around Tech via articles and videos.

_____

⚡️ Connect with me:
Personal youtube:    / dillionmegida  
Personal website: https://dillionmegida.com/
Twitter:   / iamdillion  
Instagram:   / deeecode  
LinkedIn:   / dillionmegida  
GitHub: https://github.com/dillionmegida


On this page of the site you can watch the video online #18 React useEffect Hook with Object Dependency with a duration of hours minute second in good quality, which was uploaded by the user Deeecode 04 February 2024, share the link with friends and acquaintances, this video has already been watched 1,414 times on youtube and it was liked by 20 viewers. Enjoy your viewing!