UseEffect React Hook the complete guide: Fetch data + Dependency Array + convert class to function

preview_player
Показать описание
In this video you will learn everything there is to know about the UseEffect React Hook. We'll take a look at how it works under the hood and what are some of the common usecases for it. We'll cover the reason for why we have a dependency array and we'll go over how we can imitate the behvaior of ComponentDidMount/ComponentDidUpdate/ComponentWillUnmount. We'll wrap things up by fetching data from an api using the useEffect hook and implementing a automatic update based on search query change.

UseEffect Hook!!!!!!!!!!!!!!!!!!

▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
00:00 intro
00:57 what is a useEffect hook
03:06 Popping your useEffect hook cherry
07:56 Dependency Array
14:25 Multiple useEffect hooks & working with local storage
17:40 ComponentDidMount with useEffect hook? Empty dependency array?
20:30 UseEffect Cleanup
26:03 UseEffect Cleanup & rendering order
28:54 Fetching data with useEffect hook
37:09 fetch data on search query change : OpenBreweryDB API
46:38 Convert Class based components to functional

If you like this video please subscribe to this channel. Don't let me go hungry!

▬▬▬▬▬▬ Support this garbage Channel 🍒 ▬▬▬▬▬▬

▬▬▬▬▬▬ Stalk me on Social Media 😲 ▬▬▬▬▬▬
Рекомендации по теме
Комментарии
Автор

The most valuable and under rated channel

vishutiwari
Автор

You are a born educator, Sanjeev anna. You make complex topics so simple and easy to understand.

masroorehsan
Автор

as usual eloquent and to the point you are truly a teaching master Sanjeev!

boopfer
Автор

Really appreciate everything you're doing. I see the views aren't justifying the amount of hardwork you put into making these videos. Please don't stop, everyone is learning so much!! One of my go-to source for learning

NabeelGm
Автор

I use React half year. I konow already all this things but!! This tutorial is amasing!!! I startet and can't stop. I really recommend to watch! Thanks author!

yakivkuzmenkowich
Автор

This is so far the best video I've seen on use effect!!

arjunvaidy
Автор

I loved the way how you taught in this session. I have been learning react past 6 months but this kind of clear explanation I never got from anywhere.
I request you to please make more videos on React.
Thanks!

saurabhsalgaonkar
Автор

randomly found this on reddit, glad i did :) great vid i had trouble understanding before

Kyle-holj
Автор

Hey Man,
I'm Here Just To Say You thanks,
I have watched your video of docker and node and that was dope I must say.

Thanks Again💕❤💖❤💕💖

Gohel
Автор

That's the first video that i've found that made me understand it! great job ! <3

Chrisek
Автор

you have a very calming voice I like it a lot

coinnerd
Автор

I love how you explain things and don't assume we know it already or just give a high level overview like so many videos do. Videos so often fail to break things down like this. Subscribed!

uhNid
Автор

Waiting for some of your kick-ass project bro 🌟

piyushmahapatra
Автор

Very awesome very detail, please create more about react hooks on your channel :)

wirawardhana
Автор

Thank you this tutorial . Waiting for more another video's on react

blah
Автор

This is brilliant. I find these in-depth looks into why things work the way they do to be extremely informative. Thanks for the video. Subscribed.

Iceteatree
Автор

You are my favorite instructor on YT. Please make a tutorial on unit testing with react-testing-library & jest. Thank you for this channel! ❤️

Cheers.

scollgus
Автор

saved for later. you have an amazing content, hope you make more content like that, i would like to watch you explaining kubernets and more on node and react, thanks.

zakichan-rc
Автор

Can't like enough! Loved your teaching style, please never stop, you're amazing

franklinmoon
Автор

Sir, if you could please make a organised playlist for all react videos then it will be highly accessible to us...

Thanks so much you lr teaching style is awesome now i actually getting the feeli g of react :)

shubhsagar