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?
- Modify the input component
- Use inheritance to copy X’s behavior
- Compose the component ‘X’ by wrapping it in a container component
- None of these