Skip to content

Building Custom React Hooks /// What I learned from "React - The Complete Guide 2024 (incl. Next.js, Redux) - Academind by Maximilian Schwarzmüller"

Notifications You must be signed in to change notification settings

selmasaltik/react-custom-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Custom Hooks

Creating & Using Custom React Hooks

  • Repetition: Rules of Hooks
  • Why Custom Hooks?
  • Creating Custom Hooks
  • Using Custom Hooks

Rules of Hooks

  1. Only call Hooks inside of Component or Other Hook Functions
    • React Hooks must not be called outside of React component functions or other Hook functions
  2. Only call Hooks on the top level
    • React Hooks must not be called in nested code statements (e.g., inside of if-statements)

Resources

About

Building Custom React Hooks /// What I learned from "React - The Complete Guide 2024 (incl. Next.js, Redux) - Academind by Maximilian Schwarzmüller"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published