DEV Community

Discussion on: Writing clean, reusable components in React (best practices)

Collapse
 
tmnrp profile image
TonyMartin • Edited

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?