Scenario: You have a reusable component say "ButtonSave" which take props be label or styles or even icon.
A situation where this button is used in 100 different pages, and now your boss tells you a change(add/remove/etc) on the button.
You have to apply those changes in 100 location.
What would be the best practices on that ?
// maybe create dedicated wrappers for each usecase?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Scenario: You have a reusable component say "ButtonSave" which take props be label or styles or even icon.
A situation where this button is used in 100 different pages, and now your boss tells you a change(add/remove/etc) on the button.
You have to apply those changes in 100 location.
What would be the best practices on that ?
// maybe create dedicated wrappers for each usecase?