Using higher order Components

You have built a component X when working in React. Now, you want to reuse X’s logic using a higher order component.

What can you do to achieve this?

Options
  1. Modify the input component
  2. Use inheritance to copy X’s behavior
  3. Compose the component ‘X’ by wrapping it in a container component
  4. None of these

Related Posts

Close Bitnami banner
Bitnami