Micro1 interview question

How would you use react to create dynamic reusable components that can handle different input fields in a form?