Higher Order Component
lastmod 2023-03-11created 2023-03-111 edits
A higher-order component is a function that takes a component as a parameter and returns a new component. In React, we write function components. An HOC takes such a component as an argument, wraps it, and returns a new component, which increases component reusability.