Sobre o curso
A set of video tutorials all about React Hooks! useEffect, useState, useContext, custom hooks and much more.
Aulas do Curso (6 vídeos)
Descrição da aula 0: React JS Tutorial #6: the useState Hook
Wondering how to use state in React JS? Look no further! In this exciting video, we dive deep into the world of React JS and explore the power of the useState Hook! ?? Join Code Emily as she breaks down the concept of state, demonstrates how to use the useState hook and shares an example of how it can be of use in React components. By the end of this React JS tutorial, you'll have a solid understanding of state and be ready to level up your React JS skills and learn even more React hooks! Link to the playlist for the full React JS tutorial series: https://www.youtube.com/playlist?list=PLcWTAEgFyJYKs_tZlyeXwUM_T6mdzoJZx 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: https://www.youtube.com/playlist?list=PLcWTAEgFyJYLqcy2RBM8RJr2kkdlwCAGR 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 Example without state 00:43 Rewriting the component using the useState Hook 03:00 using the useState hook with the old value 03:45 Outro!
Descrição da aula 1: React JS Tutorial #7: the useEffect Hook
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: https://www.youtube.com/playlist?list=PLcWTAEgFyJYKs_tZlyeXwUM_T6mdzoJZx 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: https://www.youtube.com/playlist?list=PLcWTAEgFyJYLqcy2RBM8RJr2kkdlwCAGR 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
Descrição da aula 2: React JS Tutorial #8: Calling an API
Let's dive into fetching from an API and displaying that data in React JS using useEffect, useState & the JavaScript Map array method, using the Pokemon API! This tutorial is a bit more of a "real life" example of data fetching in React JS. In this tutorial, we'll talk about fetching an API of Pokemon, displaying those Pokemon results and adding a new component for each result. In that new component, we'll do another fetch to show the Pokemon's abilities, based on a button called "Show more details". This way, we're relying on React state to determine whether or not to fetch more details for each item in the React list. We also talk about the importance of keys in map and much more. This tutorial is a great place to find out how to fetch data in React and how to display it properly. A great place to turn to for beginners in React! *Links mentioned* useEffect Tutorial: https://youtu.be/kqzO1eiJTC4 Map Tutorial: https://youtu.be/jmIQrlrAwm0 Destructuring Tutorial: https://youtu.be/t_dMg_jPkXk Link to the playlist for the full React JS tutorial series: https://www.youtube.com/playlist?list=PLcWTAEgFyJYKs_tZlyeXwUM_T6mdzoJZx 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: https://www.youtube.com/playlist?list=PLcWTAEgFyJYLqcy2RBM8RJr2kkdlwCAGR 00:00 Intro: Fetching Data from an API & Displaying it in a React Component 00:20 Exploring the Vite app that is up and running; going through useEffect & fetch 01:30 Mapping out the list of Pokemon data fetched from the Pokemon API 04:00 Adding a component for the Pokemon results 04:57 Building out the Pokemon component: Adding state for the showMore button click 07:01 Building out the Pokemon component: Fetching abilities using useEffect 08:21 Building out the Pokemon component: basing useEffect on the showMore state 09:10 Building out the Pokemon component: Mapping out the abilities for each Pokemon using Map 010:10 Outro & Thank you!
Descrição da aula 3: React Tutorial #9: Custom Hooks
Welcome back to Code Emily! Stuck on React JS Custom Hooks?! Why use a React Custom Hook? How do you create a React Custom Hook? Learn those two things and more in this video! All while using the Pokemon API, useEffect, useState and the JS Array method, map, to map out our data. Whether you're a beginner or an experienced developer, this React JS tutorial on custom hooks will walk you through the process of building reusable hooks that optimize code reusability and maintainability. *Links mentioned* React Array Destructuring Video: https://youtu.be/t_dMg_jPkXk *Other Important Links* If you're stuck on the ins & outs of the useEffect hook: https://youtu.be/kqzO1eiJTC4 If you're stuck on the ins & outs of the useState hook: https://youtu.be/0SsTbX3zdvY Full React JS Beginner Tutorial: https://www.youtube.com/playlist?list=PLcWTAEgFyJYKs_tZlyeXwUM_T6mdzoJZx If you're new to JavaScript as well, don't worry! Code Emily has got you covered with a comprehensive JavaScript tutorial series. Full JavaScript Tutorial: https://www.youtube.com/playlist?list=PLcWTAEgFyJYLqcy2RBM8RJr2kkdlwCAGR 00:00 Intro: Custom Hooks Definition, why they need to start with "use" 00:20 Let's create a custom hook! Intro to the example we're going to use (using the Pokemon API) 01:21 Moving logic from the component to a custom hook 02:30 Importing the custom hook into our component 03:05 Adding a loading state to our custom hook 03:51 Returning multiple variables from our custom hook 04:15 Importing multiple variables from our custom hook and using the loading state in our component 05:20 Discussing the Pokemon React Component 05:40 Refactoring our pokemon data mapping into using the Pokemon React component 05:40 Refactoring our pokemon data mapping into using the Pokemon React component 06:50 Overview on Refactoring the Pokemon Component to use our Custom Hook 07:01 Refactoring the Custom Hook to use a variable called url 06:50 Refactoring the Pokemon Component to use our Custom Hook 08:30 Benefits of using Custom Hooks: Why use them? 08:57 Outro & Thank you!
Descrição da aula 4: React JS Tutorial #10: the useContext Hook
Welcome back to Code Emily! Trying to understand the useContext hook?? Trying to understand prop drilling?! Wondering if redux or flux is needed anymore? This example walks you through an example of sharing the login state from the parent component to the children components and gives important advice on using useContext in your React JS application. Whether you're a beginner or an experienced developer, this React JS tutorial on useContext will walk you through the process of using the useContext hook within your app properly. If you're new to JavaScript as well, don't worry! Code Emily has got you covered with a comprehensive JavaScript tutorial series. *Important Links* Full React JS Beginner Tutorial: https://www.youtube.com/playlist?list=PLcWTAEgFyJYKs_tZlyeXwUM_T6mdzoJZx Full JavaScript Tutorial: https://www.youtube.com/playlist?list=PLcWTAEgFyJYLqcy2RBM8RJr2kkdlwCAGR 00:00 Intro: useContext() hook 00:05 useContext() Example Explanation 00:37 Prop Drilling in Components 00:57 Creating a context 01:46 Wrapping children with the Context Provider 02:25 Getting the context from the useContext() hook 03:11 Rewriting prop drilling with the useContext value 03:40 Are State Management Tools like Redux Needed? 03:38 Are State Management Tools like Redux Needed? 03:48 useContext Tips: Don't bloat the app/consider a refactor 04:00 useContext Disadvantages: Children Re-rendering 04:15 Code Emily Outro & Thank you!
Descrição da aula 5: React JS Tutorial #11: the useMemo Hook
Trying to learn the React useMemo hook?! Look no further! This video will teach you the ins and outs of memoizing values in React, why you'd want to do this and more. The useMemo hook is a very common React JS interview question so it's an important one to study up on! This video will walk you through an example of using useMemo with theme state updating the component along the way. *Important Links* The React JS useEffect Hook: https://youtu.be/kqzO1eiJTC4 The React JS useState Hook: https://youtu.be/0SsTbX3zdvY Full React JS Beginner Tutorial: https://www.youtube.com/playlist?list=PLcWTAEgFyJYKs_tZlyeXwUM_T6mdzoJZx Full JavaScript Tutorial: https://www.youtube.com/playlist?list=PLcWTAEgFyJYLqcy2RBM8RJr2kkdlwCAGR 00:00 Intro: useMemo() hook 00:10 useMemo() Example explanation w/ state 01:30 Memoizing expensiveCalculation / eeveeAge 02:45 useMemo & Dependency arrays 04:10 useMemo & a dependency array with state 02:25 Getting the context from the useContext() hook 03:11 Rewriting prop drilling with the useContext value 03:40 Are State Management Tools like Redux Needed? 03:38 Are State Management Tools like Redux Needed? 03:48 useContext Tips: Don't bloat the app/consider a refactor 04:20 useMemo & Interviews 04:37 Memoizing can negatively impact Performance 05:02 Outro & Thank you :)
Sobre o Canal
Code Emily
Welcome! Looking for software engineering advice? Trying to learn JavaScript, TypeScript and/or React? Wondering how to get into software engineering or wanting to get advice on day to day software engineering life? Look no further! Code Emily is the place to be for all of that. Emily is a software engineer, comedian, artist and tutor. She's always loved to help others learn math and coding, with laughter along the way. She's so excited to put all of her favorite things in one place: Code Emily!
GRATUITO
Cursos relacionados
Prévia do curso
