Andrew's Digital Garden

Components should have a single responsibility

Good component API follows the [[20221010033955-single-responsibility-principle]]. Once it starts to do more than one thing, it should be broken into smaller sub components.

[[api]] [[components]] [[componentapi]] [[react]]

Components should have a single responsibility