To reduce the need for prop drilling, one can use HOCs in combination with ________ to provide data directly to the components that need it.

  • Context
  • Local component state
  • Props
  • Redux
Higher-Order Components (HOCs) can be combined with Context to provide data directly to components that need it, reducing the need for prop drilling (passing data through multiple intermediate components). Context provides a way to share data across the component tree without explicitly passing props at each level.
Add your answer
Loading...

Leave a comment

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