Follow us on: facebook twitter linkedin

PROGRAMING

HOC and Custom Hook in React

Post by : John Deo
Post date: 2025-01-15 13:23:46

Read time : 2 minute
Total views: 203 times
hero-img

Whats HOC?

React HOC mean higher order component. Its a normal component but main difference is return type is component. 

HOC take logical decision and return a component.

 

Whats Custom Hook?

Custom hook basically a reusable function and use react hook. But as function name use use prefix. 

Share by:

Keep exploring

Read what excites, achieves and moves us Read what excites, achieves and moves us