SitePoint
  • Premium
  • Library
  • Community
  • Jobs
  • Blog
LoginStart Free Trial

The home for developers

Track your course progress, manage projects, and find your dream job - all in one place.

Start Your Free Trial

7 Day Free Trial. Cancel Anytime.

SitePoint Premium

  • Access to 700+ courses
  • Publish articles on SitePoint
  • Daily curated jobs
  • Learning Paths
  • Discounts to dev tools
  • Library/
  • Text courses/
  • Designing React Hooks the Right Way
Designing React Hooks the Right Way

Designing React Hooks the Right Way

Learn about the React engine and discover how each built-in Hook can manage a persistent value by hooking into it


Course details

0∙0 Ratings0 reviews

Published
January 2022
Publisher
Packt
Chapters
10

About the course

React hooks create a unique solution for using states in function components to orchestrate UI communication. They provide you with an easy interface to write custom data management solutions with low development and maintenance costs. Understanding how Hooks are designed enables you to use them more effectively, and this book helps you to do just that.

This book starts with a custom-crafted solution to reveal why Hooks are needed in the first place. You will learn about the React engine and discover how each built-in Hook can manage a persistent value by hooking into it. You will walk through the design and implementation of each hook with code so that you gain a solid understanding. Finally, you'll get to grips with each Hook's pitfalls and find out how to effectively overcome them.

By the end of this React book, you'll have gained the confidence to build and write Hooks for developing functional and efficient web applications at scale.

Author

Fang Jin

Fang Jin

Fang Jin is a software engineer that makes reusable and scalable web modules that can be applied to modern browsers and devices. He is an engineering hobbyist with interests ranging from economics and philosophy to software development, architecture, and team development. Fang is a lifelong learner and during his journey, he has helped organizations and teams adopting UI frameworks with consistent branding look and feel across departments to save cost and boost efficiency. In his free time, he likes swimming and surfing YouTube.

Course Outline

Chapter 1: Introducing the Function Component
Chapter 2: Crafting States in Functions
Chapter 3: Hooking into React
Chapter 4: Use State to Jumpstart Components
Chapter 5: Use Effect to Handle Side Effects
Chapter 6: Use Memo to Boost Performance
Chapter 7: Use Context to Cover an Area
Chapter 8: Use Ref to Hide Stuff
Chapter 9: Use Custom Hooks to Reuse Logic
Chapter 10: Building a Website with React

Reviews

0 total

0
0
0
0
0

Course details

0∙0 Ratings0 reviews

Published
January 2022
Publisher
Packt
Chapters
10

SitePoint

Stuff we do

  • Premium
  • Newsletters
  • Learning paths
  • Library
  • Forums

Contact

  • Contact us
  • FAQ
  • Publish your book
  • Write an article
  • Advertise

About

  • Our Story
  • Corporate Memberships
  • Start free trial
  • Login

Connect

  • RSS
  • Facebook
  • Twitter (X)
  • Instagram

Subscribe to our newsletter

Get the freshest news and resources for developers, designers and digital creators in your inbox each week

© 2000 – 2025 SitePoint Pty. Ltd.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Terms of usePrivacy policy