All useEffect Mistakes Every Junior React Developer Makes

900,103
0
Published 2022-08-10
Learn React useEffect hook from scratch. React useEffect tutorial beginner to advanced. useEffect best practices. Clean up, lifecycle, and rendering problems.

For more projects you can support Lama Dev:

Join: youtube.com/channel/UCOxWrX5MIdXIeRNaXC3sqIg/join
Buy me a coffee: www.buymeacoffee.com/lamadev

Join Lama Dev groups
Facebook: www.facebook.com/groups/lamadev
Instagram: www.instagram.com/lamawebdev
Discord: discord.gg/yKremu4mPr
Twitter: twitter.com/lamawebdev

Source Code: github.com/safak/youtube2022/tree/useEffect

0:00 Understanding useEffect
04:10 useEffect Dependency Mistakes
09:39 useEffect Updating State Correctly
10:58 useEffect Clean-up Functions Explained
13:50 Best Ways to Make API Requests with useEffect

All Comments (21)
  • I work professionally with React for more than 5 years and still regularly fall into these traps. Understanding these concepts is essential, and this video explains them perfectly. If YouTube would allow, I would like this video 10 times!
  • @ramiov3862
    I've realy never seen any one who explains React hooks so well and all it's possible uses as well as what mistakes to avoid, This kind of knowledge is really what we are missing as junior developers, And i realy appreciate the effort man Thanks !
  • I wish I had found this tutorial earlier. You have explained all the details of one of the most important hooks in a really intuitive manner ! Great work :)
  • @mykalesalad
    This is by far the most helpful react video I've ever seen, cleared up a ton of questions I had about strict mode and effect hooks
  • Great explainable video, thank you! Only a sneak peek about Axios. Since v0.22.0 we can use the AbortController passing the signal as an option rather than CancelToken as it is deprecated in new versions.:goodvibes:
  • Very useful, I was searching for these frequently, and you have grouped it together in one video, thanks a lot!
  • @marctofan824
    I have never heard a better explanation. Very clear, simple, many examples. Immediately subscribed to the channel
  • Köszönöm szépen, a megfelelő tudást kaptam, pont annyira kifejtve, amennyire szükséges és tisztázódott a fejemben sok misztikum.
  • @chizidotdev
    Your method of explanations are second to none Lama Dev! Thank you so much… Suggestion for next tutorial… useReducer vs useState, I can’t seem to get enough explanations for them
  • It was a perfect description of the React hooks I have ever seen. Thank you so much!
  • @Corntrop
    For the first time I understood useEffect clean up. As always lama dev simplified everything. Thank you so much
  • Thanks for the refresher. You do a great job explaining concepts.
  • @byronk5
    This has answered many questions I had about this particular hook. Thanks so much for the great content!
  • @zararashraf
    Beautifully explained. This will be my go-to channel now.
  • @wittyhumour29
    Top-notch presentation, with a clear explanation of the pitfalls when working with useEffect
  • @softmerit25
    You're really the best. A good teacher indeed. Your videos are clearly explained and hands on practice. Thanks a bunch for all you do. Bless you!!!
  • @coder5336
    Omg. You are the best man. Cleanest explanation ever. We need every hook tutorial from you.
  • @user-du9mu9ni5k
    Been working with react for a while now and you just demystified a lot
  • @nobir98
    Such a good explanation and example. I've never seen someone explain react hook that easily and it's use cases
  • @cortaesai
    Após 1 ano de estudo só agora entendi com o não ter problemas com useEffect. O clean-up ajudou de mais Vlw @Lama Dev