adspace


Explain the term high order component

Answer Posted / Sujit Kumar

A high-order component (HOC) is a function that takes another React component as an argument and returns a new component with enhanced functionality. HOCs are used to reuse logic between components, share state, or add additional props.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you create higher order components (hocs) in react.js?

448


How to use events in reactjs? Give an example of using events?

565