What are Higher-Order Components (HoCs) in React?
Short Answer: Component Factories.
Higher-Order Components are actually a design pattern derived from the compositional nature of React, which allows us to derive components based on particular data we want to pass down to them.
Think of it this way:
- Components return React Elements (JSX)