DEV Community

Discussion on: Is React SOLID?

Collapse
 
alainvanhout profile image
Alain Van Hout

In the second case the location/context where you use RedButton would not need to be aware of the difference between a Button and a RedButton, so you'd be able to use a RedButton anywhere where you'd otherwise be able to use a Button (-> conforms to LSP there, I would think).