Using useEffect in React

preview_player
Показать описание
Learn the basics of using useEffect in React applications with @CognitiveSurge, including using dependency arrays, multiple effects, side effects, and more.

00:00 LogRocket intro
00:15 What is useEffect?
04:24 What is a useEffect dependency array?
04:39 Can I have multiple useEffects?
05:10 Using useEffect for asynchronous tasks
05:46 What are side effects in useEffect?
06:47 Can we use useEffect in a custom Hook?
07:38 Can useEffect be inside a function?
11:44 useEffect tutorial overview
13:21 useEffect tips and tricks
15:15 Subscribe to LogRocket

Links
Рекомендации по теме
Комментарии
Автор

Exactly what I was looking for! Thanks a lot!!

decafujita
Автор

Хорошее объяснение, все понятно, ясно.) Спасибо! Удачи Вам!

alextotun
Автор

I think the `if didCancel` check should be after the last await and around the `setJoke`. Otherwise the opportunity to get at the promise result underneath is lost.

dmg
Автор

hi, thanks for great content. Could you explain more detail how didCancel work and why you use it when fetching data ? I did not quite catch that.

pizzaitaliana
Автор

May I know what font are you using? Great video anyway!

jarrettgoh
Автор

please make a video about useContext hook

Troy-olfk