DEV Community

Discussion on: 🤩 Build Custom Button Component With React JS

Collapse
 
jaloplo profile image
Jaime López

Why not creating an specific button for each style or type instead of having so many linea of code making difficult to read? I think, applying Single Responsibility principle here would make this component to be several of them and another as the manager. What do you think???