React useEffect() hook introduction 🌟

Published: 06 January 2024
on channel: Bro Code
75,970
1.9k

#react #tutorial #course

00:00:00 introduction
00:02:00 setup
00:03:25 no dependencies
00:04:50 empty dependency array
00:05:51 1 dependency
00:07:25 multiple dependencies
00:09:57 why use useEffect()?
00:11:33 example 2
00:15:51 return
00:17:31 multiple useEffect() hooks
00:18:52 conclusion

// useEffect()
// React Hook that tells React to DO THIS CODE WHEN:
// (pick one)
// This component re-renders
// This component mounts
// The state of a value changes

// useEffect(function, [dependencies])

// USES
// #1 Event Listeners
// #2 DOM manipulation
// #3 Subscriptions (real-time updates)
// #4 Fetching Data from an API
// #5 Clean up when a component unmounts


On this page of the site you can watch the video online React useEffect() hook introduction 🌟 with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 06 January 2024, share the link with friends and acquaintances, this video has already been watched 75,970 times on youtube and it was liked by 1.9 thousand viewers. Enjoy your viewing!