I have to display 2 sections as follows in the UI:
Customer
Name:
Email:
Phone:
Company
Name:
Email:
Phone:
I am confused if it's better to create a reusable component for this or duplicate the code?
In case I create a reusable component and later if the fields get added or removed in any of these sections, would it be a good approach to add conditions?
Aucun commentaire:
Enregistrer un commentaire