Using React Hooks

Take your React programming to the next level by learning React Hooks. They simplify programming state and lifecycle events exclusively in functional components - no classes needed. Learn both basic and advanced techniques for using React Hooks.
Course info
Level
Beginner
Updated
May 3, 2019
Duration
1h 54m
Table of contents
Course Overview
Start Using React Hooks with useState, useEffect, and useRef
Using More Hooks: useContext, useReducer, useCallback, and useMemo
Migrating Your Existing Apps to React Hooks
Learn How to Combine Existing React Hooks into New Combined Hooks
Integrating Authentication into Your App with React Hooks
Description
Course info
Level
Beginner
Updated
May 3, 2019
Duration
1h 54m
Description

React versions 16.8 and higher include React Hooks which solves several problems that went unaddressed in previous versions. React Hooks provide a direct API to React concepts you already know about, like props, state, context, refs and lifecycle events. This is not a beginner course on React itself; if you are not comfortable building simple React apps that use state, start out with the React: Getting Started course. In this course, Using React Hooks, you’ll learn both basic and advanced techniques for using React Hooks in React functional components where previously there was no good way to manage state or lifecycle events. First, you'll see how to use all of the built-in React Hooks provided by the React team. Next, you’ll discover that you can combine the base React Hooks into your own custom React Hooks. Finally, you’ll explore how to incorporate Hooks into a real-world React App. When you are finished with this course, you’ll confidently be able to combine functional components with React Hooks to build first class React apps.

About the author
About the author

Peter is the founder of Silicon Valley Code Camp and long-time software professional specializing in mobile and web technologies. He has also been a Microsoft MVP in ASP.NET since 2006.

More from the author
Building a Website with React and ASP.NET Core
Intermediate
3h 20m
May 22, 2018
More courses by Peter Kellner
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi, I'm Peter Kellner, and welcome to my course, Using React Hooks. I'm a part-time docs writer for Microsoft, part-time author, part-time conference organizer, and full-time learner. React Hooks represents a huge step forward towards building a fully functional React app with minimal use of class components. Let me convince you that React Hooks, based off of functional components, are the best way to build React apps. Managing state and lifecycle events with Hooks is much easier, requires less code, and is much more readable than doing the same with React class components. Hooks are how JavaScript was always meant to be programmed. The major topics that we will cover include built-in React Hooks, including useState, useRef, and useEffect, advanced Hooks like useReducer and useContext. We'll compare how React Hooks in functional components replace more complex code and class components. And finally, we'll build a real-world React app using Hooks that includes custom React Hook designed to handle CRUD operations running against a REST server. By the end of this course, you'll completely understand how to, using React Hooks, make your React functional components work with state and component lifecycle events in your apps. You'll be able to build an entire React app with just functional components and React Hooks. No class components needed. This is not a beginner course on React itself. If you are not comfortable building simple React apps that use state, I suggest you start out with the React: Getting Started or React Fundamentals course and then take this one after. Join me, and learn how you can use React Hooks in all your apps by watching this course, Using React Hooks, at Pluralsight.