React components: function, class, pure, smart, dumb, and reusable design
React components are reusable UI units, and interviews often compare function components, class components, pure components, and presentation-focused designs.
- Function components are the modern default
- Class components still matter for older codebases
- Good components stay focused and reusable
React components: function, class, pure, smart, dumb, and reusable design