Exercises: useEffect Hook - React In Depth
Ғылым және технология
Let's go through some exercises on the useEffect hook in React together.
We start with a warmup to practice a simple Counter component but with some effects to log on mount and on update.
Then we look at our first exercise where we setup a setInterval and manage its cleanup.
For the second exercise, we introduce multiple components and see how the interact together with useEffect.
To wrap up the video, we look at how we can fetch data from a REST API using fetch and useEffect.
Chapters:
00:00 Introduction
00:40 Warmup Exercise - Mount and Update
12:09 Exercise 1 - setInterval Cleanup
22:02 Exercise 2 - Multiple Components
49:59 Exercise 3 - Fetch Request REST API
1:09:21 Next Steps
📦 Github Repository with the notes and exercise code+solutions: github.com/Nooder/react-in-depth
💬 Come join us on Discord to chat with a like-minded community about tech and learning: / discord
🏅Support the channel and content through Super Thanks, Channel Memberships, or on Patreon: / techwithnader
Пікірлер: 11
really really really, these videos are very useful. Thank you so much for this video series.
Great video as usual! Thanks Nader!
Nader, I absolutely love your videos! I keep coming back to this course and the JS course. I find it so confusing when I watch other courses that don't explain how things actually work. Keep up the good work! I'm watching the Rest APIs course next 🥳🥳🥳
@TechWithNader
9 ай бұрын
Thanks for saying this! This is exactly what keeps me going with new videos and courses 😊 Have fun!
bro you are doing amazing job!💓 Tq for js and react playlist :)
@TechWithNader
11 ай бұрын
Thanks and you're very welcome! Working on the next few 🚀
Dude you rule, I've started studying React from other sources but it was sooo confusing, but this course it flows so good with me, thank you dude!
If im getting a job as a junior developer i give you more credit than my college
@TechWithNader
5 ай бұрын
Thanks! That's very kind of you 😃 I hope you enjoy the rest of the series and the project! Don't hesitate to ask questions here on on the Discord too 🚀
top Tier as alawys
Great 🔥