Design Patterns · Middle · Question 41 of 75
What is a headless component in terms of patterns?
- ✓Correct answer: Logic separated from markup and styles
- 2A component rendered on the server without a browser
- 3A component without a
<head>in its HTML
Explanation
A hook or component provides state and handlers (useCombobox, Radix primitives), while the app controls markup and styles. It's separation of concerns and OCP: the look changes without changing the logic.