A component that is used to transform another component by adding additional logic or properties is called a ________.

  • HOC (Higher Order Component)
  • Container Component
  • Stateless Component
  • Functional Component
A Higher Order Component (HOC) is used to wrap or enhance other components by adding additional logic or properties. HOCs are a common pattern in React for code reuse and logic sharing. While the other options are types of components used in React, they do not specifically describe the component that adds logic or properties to another.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *