Q. What is a higher-order component (HOC) in React?
β
Correct Answer: (C)
A function that takes a component and returns a new component
Explanation: HOCs are used to reuse component logic.