Skip to content

okeresamuel/Custom-hooks-in-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom-hooks-in-react

custom hooks helps to prevent unnecessary code duplicates and re-renders.

Prevention of re-renders is made possible in a custom hook by using the useRef hook more than useState Hooks.

The useRef hook do not trigger a re-render and can be used instead of the useState hook to improve the applications performance. it`s also commonly used to refer and create events on html elements (Click events).

Read more : https://medium.com/@okeresamuel360/custom-hooks-in-react-8d6b1f2782eb

About

custom hooks helps to prevent unnecessary code duplicates and re-renders! .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published