The useEffect hook is one of the most important hooks to learn when learning React JS! It's key to understand this hook if you are hoping to fetch data in your React components. In this tutorial, we go through using the useEffect hook, fetching data and updating state, the useEffect dependency array and more.
Link to the playlist for the full React JS tutorial series: • React JS Full Tutorial
Oh, and if you're new to JavaScript as well, don't worry! Code Emily has got you covered with a comprehensive JavaScript tutorial series. Whether you're a React enthusiast or a JavaScript novice, we've got the resources you need to enhance your skills and become a proficient web developer. Check out our JavaScript tutorial series here: • JavaScript Tutorials
So what are you waiting for? Get ready to embark on an incredible learning journey with Code Emily and become a React and JavaScript pro in no time. Subscribe now and let the learning begin!
00:00 Explaining useEffect/Example
00:25 Adding the useEffect hook to the code, running each render
01:35 Adding an empty dependency array to useEffect
02:20 Adding state into dependency array in useEffect
02:38 Fetching data inside the useEffect hook
コメント