
In this video we're going to look at what tools we need to have installed to get started with this course.
In this video I'll explain the background of React Hooks.
In this video we're going to create our first project.
In this video we'll look at how we can implement a Switch component the "old" way which is with class components.
Let's implement our Switch component with React Hooks.
In this video we're going to be looking at the differences and similarities of state used with React Hooks and class components.
In this video I'll explain to you how we can separate different parts of the state by creating multiple state variables with the useState React Hook.
Explore the useEffect hook for side effects in function components, replacing componentDidMount and componentDidUpdate, and manage cleanup while updating the document title based on the isOn state.
Learn how useEffect uses cleanup functions to prevent memory leaks and manage timers. Understand how dependency arrays control mount, unmount, and re-runs with state changes.
https://jsonplaceholder.typicode.com/users
Learn to fetch data with React hooks by building a functional component that fetches a user list with useEffect, manages loading and error states, and renders items with keys.
Create a reusable custom hook useFetch to centralize data fetching across components, returning data, error, and isLoading, eliminating duplicate fetch logic, preparing your weather app.
Set up a React weather app project with create-react-app, fetch five days of data from OpenWeatherMap using metric units and an API key.
Build a city selector component with a Bootstrap container, including a form control input and button, using React hooks to manage city state and pass city on select button click.
Extend the useFetch hook to fetch weather data for a user-specified city by wiring a url state, triggering fetch on button click, and exposing data, error, and loading status.
Create a weather list component that maps a weathers array into bootstrap columns, passes min and max temperatures, date, and first weather description and icon to weather cards.
Refine the weather app by implementing a loading state, robust error handling, and content rendering with functional components and React hooks, including city not found feedback and real-time data fetching.
Learn the basics of React hooks and build a weather app. Explore the official website, view the GitHub source code, and leave a review.
React Hooks are the latest features of React. They were introduced in version 16.8. If you want to keep your React knowledge up-to-date then you definitely should learn React Hooks.
But what is a React Hook?
A React Hook is a function which lets you hook into function components and use the React features like lifecycle methods and state. Before React Hooks this was only possible with class components.
Why you should learn it?
Even though the creators of React do not recommend migrating existing codebase to React Hooks but they strongly suggest that you create your new components using React Hooks. So if you want to keep up with React then it's time you learned React Hooks.
What can you learn in this course?
This course introduces React Hooks from the beginning. We're going to look at some of the mostly used built in Hooks (useState, useEffect). We'll create our own React Hook as well, so after this course you'll be able to create your own React Hook. We're going to finish this course by creating a Weather App which is going to call a real API to fetch real weather data. This course will give you the solid foundations of React Hooks which then you can apply to your projects too.
When is this course not for you?
I want to be upfront here. This course is not for you if you've created many projects with React Hooks, you already know the main concepts of React Hooks and you've created your own custom Hooks as well. This course gives an introduction to React Hooks though we're going to cover the two most used built in React Hooks extensively.