What is higher order components (hoc)?



What is higher order components (hoc)?..

Answer / Swati Rani

"Higher-Order Components (HOCs) are functions that accept a component and return a new component with added functionality. They are used to reuse logic between components."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More React.js Interview Questions

Do you need to use ES6 (+) with React?

1 Answers  


What is ReactDOM and what is the difference between ReactDOM and React?

1 Answers  


How is react router different from conventional routing?

1 Answers  


What is the significance of store in redux?

1 Answers  


How are actions defined in redux?

1 Answers  


What is Redux Thunk used for?

1 Answers  


What is ComponentWillMount()?

1 Answers  


Which is best react or angular?

1 Answers  


How to update a component every second?

1 Answers  


List some advantages of reactjs?

1 Answers  


What is the difference between reactjs and angularjs?

1 Answers  


What do you know about controlled and uncontrolled components?

1 Answers  


Categories