Skip to content
public-library›Rules›React›Name generic components by capability, not by first caller

Name generic components by capability, not by first caller

Name a generic component for the capability it provides, such as InlineDisclosure, not for the feature that first needed it, such as BillingDisclosure. Keep domain names for components that are genuinely specific to that domain.

In the full rule