Learn the React hooks by example

person icon Sandra L

Learn the React hooks by example

A complete overview of the hooks with useState, useEffect, useCallback, useMemo, useRef, useReducer and useContexte

updated on icon Updated on Sep, 2023

language icon Language - English

person icon Sandra L

architecture icon Web Development,React


30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 19,000+ top Tutorialspoint courses anytime, anywhere.

Course Description

The hooks, are a new addition to the React library since version 16.8, that let you write stateful component without the need to write a class,

The course is fast-paced with practical example and project to get you up to speed fast with using hooks, from basic to advanced.

1) We begin with an overview of the basic hooks, with :

  • useState : to add and update local state inside a function component

  • useEffect: serving the same purpose as componentDidMount and componentDidUpdate, the effect hook to apply side effects in your function component when the local state updates

2) Then, we dive into the additional hooks, with :

  • useContext

  • useCallback and useMemo

  • useReducer

  • useRef

3) Finally, we learn to build custom hooks to isolate and reuse stateful logic between multiple function components :

  • to make network call to APIs

  • to validate forms

  • and,  to add theme configuration to your project with the option to toggle dark and light theme


What will you learn in this course:

  • How to use React hooks
  • Learn useState, to add and update local state inside a function component
  • Learn useEffect, to apply side effects whenever the state changes
  • A complete guide to additional hooks like useMemo, useCallback, useRef, useReducer and useContext
  • Learn to build your own hook to encapsulate and reuse stateful logic
  • Learn by examples with a practical project : data fetching with function components only


What are the prerequisites for this course?

  • Be familiar with React and have solid JavaScript knowledge
  • Understand some fundamental React concepts such as JSX, props, event delegation, composition and the react CLI
  • Understand the basics of the state management with Redux with actions, dispatch and reducers
Learn the React hooks by example


Check out the detailed breakdown of what’s inside the course

1 Lectures
  • play icon Introduction 00:56 00:56
The Hooks - useState and useEffect
6 Lectures
Data Fetching with the hooks (no class)
26 Lectures
Supporting Materials
1 Lectures

Instructor Details

Sandra L

Sandra L

Javascript and Web Developer


I am Sandy, freelance web and mobile Developer based out of Toronto, in Ontario, Canada, I specialize in Front-End development with HTML, CSS, CSS3 Animation, Sass, Javascript and JQuery. 

I love creating beautiful, professional and user-friendly websites using the Adobe Creative Suite: Photoshop, Illustrator and Flash to name a few. 

I am also keen on Web marketing, Web analytics, Visual Design, Video Editing, Photography and WordPress development.

Course Certificate

User your certification to make a career change or to advance in your current career. Salaries are among the highest in the world.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
People having fun around a laptop

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
People having fun around a laptop

Talk to us