@DaveGrayTeachesCode

The React useEffect hook is frequently applied in React applications, but it is important to understand when it will run before you apply it to your application. You can also accidentally create an endless loop with useEffect if you do not understand how it may impact the state of your application. In this tutorial, we review how to apply useEffect, when useEffect will run, and what to avoid when applying useEffect. If you are just starting out with Javascript, I recommend beginning with my full 8 hour tutorial for beginners here: https://youtu.be/EfAl9bwzVZk

@vincentiusherie

I've watched numerous tutorials on useEffect (and ReactJS in general). Yours is and are the best. Very very clear. i don't think this tutorial is a "how to" for beginners because it is comprehensive. But the way you explained it is so easy to understand. Many many thanks for your videos. They're absolutely brilliant! You are a great communicator!

@keepanopenmindlookatallthe2540

I've spent days trying to read and learn about incorporating setInterval within  useEffect, useState and useRef.
This made it VERY clear how it works

@aya2222

I watched your javascript, and advanced javascript tutorials and jumped into react several days ago after I finished freecodecamp react tutorial. Now, I grasped the concept of useEffect and got 'aha' moment. Thank you so much for being wonderful teacher and dedicating your time and talent to make awesome tutorials.

@ghostpieces2362

The before and after example was brilliant and probably where I would have struggled with how useEffect works. Thank

@muhammedozalp

Neat and clean explanation of useEffects. Thanks bro

@MrSalFav

Thank you Dave !!  Really appreciate the tutorials you make they are one of the best.

@fernandosalas4885

Best useEffect() tutorial all over the web!

@spiritual5750

Dave you are godsend honestly.

@CodeWithTomi

You're dropping some great contents.... Love the react series

@mhideout5856

Exactly what I needed... Thanks a ton

@blaircfleming

Great content Dave, keep it coming!

@harag9

Great video, many thanks.

@julianblanco7604

Great video, ¿you have to add the setState in the dependencies, the enlist gives me a warning that setState is missing?

@nahidfaraji5069

Top-notch content. Thank You so much

@tuanphamvan655

:thanksdoc::thanksdoc::thanksdoc:

@andrews13

Always perfect!

@mohamedyoussef8835

Awesome Tutorial +++++++++++++++++++++ Thank You

@skillkrio

Dave in the timeframe 06.10, you are setting the items from the localStorage  and the initial value is empty array. I am just wondering how it worked on your pc because when i console the localstorage the value is null if there are no localstorage created. once the component finishes its execution it executes our useEffect and trigger the setItems(here value is null from shoppinglist). This cause App to re-render because our Items have been updated from [ ] to null. This causes error. But the second way is working fine. Is that edge-case that you forgot or am i doing wrong.

@Hashir-704

brilliant