okeresamuel / Custom-hooks-in-react

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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! .


Languages

Language:JavaScript 41.0%Language:HTML 40.2%Language:CSS 18.8%