My company has yet to decide on a framework and style, for example using Bootstrap or Material UI and i am looking for a flexible design pattern to solve this issue if a change is needed in the future
I decided instead of using a label or an input or any other component, to use and create my own Label and Input and inside that i pass all the props to the react label and input and if a day comes where i need to change the style for my Labels, i figured that i simply have to change the base class meaning my own Label component
Is my approach a good idea?, are there any downside to such an approach?, are there any better alternatives?
Aucun commentaire:
Enregistrer un commentaire