React Hooks

July 28, 2019
How to Use the setState Callback in React

To perform an action in a React component after calling setState, such as making an AJAX request or throwing an error, we use the setState callback.

June 18, 2019
Simplifying React State and the useState Hook

In this lesson, we’ll cover React state, how it works, and how we can use the useState Hook to build a simple dice rolling app. Let’s begin!

June 11, 2019
Build a Todo App in React Using Hooks

Build a simple todo app using React and React Hooks. This is a perfect starting tutorial for beginner and intermediate React developers.

May 12, 2019
Build a React Timer Component Using Hooks

Build a React timer component using the useState and useEffect Hooks in minutes. A React timer component is a great way to learn React, so let’s begin!

May 5, 2019
setInterval in React Components Using Hooks

Using setInterval inside React components allows us to execute a function or some code at specific intervals. Let’s explore how to use setInterval in React.

May 4, 2019
setTimeout in React Components Using Hooks

Use setTimeout in your React components to execute a function or block of code after a period of time. Let’s explore how to use setTimeout in React.

April 15, 2019
Modal Components in React Using Custom Hooks

Building modal dialogs in React is a challenge due to their architectural and accessibility complications. However, there is an easy solution.

March 30, 2019
How to Use the useContext Hook in React

Let’s explore the React useContext Hook by building a music player! I’ll also show you how a custom React Hook can make the useContext Hook easier to use.

March 4, 2019
Form Validation Using Custom React Hooks

Build a form validation engine using custom React Hooks, from scratch, without having to learn a single form library. Read on to learn how!

February 23, 2019
Using Custom React Hooks to Simplify Forms

Use custom React Hooks to build forms that require half the code to write, are reusable, and are much easier to read. Read on to learn more!

February 17, 2019
Build an Infinite Scroll Component in React using React Hooks

Today we’re going to dive deeper into React development and learn how to build an infinite scroll component in React using React Hooks. Let’s get started!

November 25, 2018
React Hooks: A Simple Introduction

React Hooks are a newly proposed feature that lets you use state and life-cycle methods without writing a class component.