anti-pattern
A common solution to a problem that looks reasonable but causes more trouble than it solves.
In more detail
Naming anti-patterns helps teams spot them in code review. This course names several: layer inversion, piling boolean props onto one component, the polymorphic as prop, and using the ARIA menu role for site navigation.
Related terms
- layer inversion — A mistake where a lower layer depends on a higher one, such as a colour token that refers to a button component.
- boolean prop — A component option that is just true or false, such as isPrimary or hasIcon.
- monolithic component — One large component that handles every variation through a long list of configuration props.
Taught in
- Design Systems Architecture: Foundations, Layers & Taxonomy — Design Systems & Component Engineering
- Component API Ergonomics: Composition vs Boolean Config Props — Design Systems & Component Engineering