Higher-Order

» Glossary » Higher-Order

Higher-Order refers to the fact that an element can take elements of the same kind as input or return them as output.

  • A higher-order function is one that can take another function as an argument, or return a function as its output.
  • In the React community, a Higher-Order Component (or HOC) is one that takes a component as input and returns a new component as output.