Home>Courses>A Deep Dive into React Hooks

A Deep Dive into React Hooks

Gain insights into using React Hooks to enhance code composition and reuse. Delve into custom hooks, global state management, unit testing, and the useDependency Pattern for enterprise-level coding.

Intermediate

34 Lessons

5h

Certificate of Completion

Gain insights into using React Hooks to enhance code composition and reuse. Delve into custom hooks, global state management, unit testing, and the useDependency Pattern for enterprise-level coding.
AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

24 Playgrounds
Course Overview
What You'll Learn
Course Content
Apply Your Skills
Recommendations

Course Overview

In this course, you will learn how to use React Hooks, which will help you achieve better code composition, code reuse, and unit testing ability as opposed to using class components. You’ll start by reviewing what React Hooks are all about and why we need them. This will set the stage for the rest of the course. After that you will dive into the Hooks API, how to manage application state globally, as well as how to create custom hooks. In the second half, you’ll get into unit testing and how to work with ...Show More
In this course, you will learn how to use React Hooks, which will help you achieve better code composition, code reuse, and unit testing ability as opposed to using class components. You’ll start by reviewing what React Hooks are all about and why we need...Show More

What You'll Learn

Complete understanding of React Hooks
Better code composition with React Hooks
Patterns of React Hooks
Complete understanding of React Hooks

Show more

Course Content

1.

Introduction

2 Lessons

Get familiar with React Hooks to enhance stateful logic, code composition, and reuse.

2.

Getting Started with React Hooks

4 Lessons

Walk through React Hooks, enhancing state, side-effect management, and following essential rules.

3.

React Hooks API

6 Lessons

Master the steps to effectively use React hooks for state, side effects, context, and optimization.

4.

Advanced: Deep Dive into useEffect Hook

3 Lessons

Build a foundation in optimizing React components with useEffect dependencies and state management.

5.

Managing Global State with Hooks

4 Lessons

Take a closer look at managing global state in React using Hooks for modular and efficient code.

6.

Create Your Own Hooks

6 Lessons

See how it works to create custom hooks for reusable notification logic in React.

7.

Unit Testing for React Hooks

3 Lessons

Practice using various techniques to effectively unit test React Hooks.

8.

Advanced: useDependency Pattern with Hooks

5 Lessons

Step through enhancing React components with the useDependency pattern for efficient data handling.

9.

Conclusion

1 Lessons

Look at the key takeaways of React Hooks and practice with beautiful-react-hooks.

Course Author

Trusted by 2.5 million developers working at companies

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

Instant Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

AI-Powered Mock Interviews

Adaptive Learning

Explain with AI

AI Code Mentor

Free Resources

FOR TEAMS

Interested in this course for your business or team?

Unlock this course (and 1,000+ more) for your entire org with DevPath