Trust Me, You Don't Need That Component Library
summary
Argues that a small, focused component library avoids the weight and lock‑in of big npm UI kits and demonstrates a working BYO React UI Library (GitHub: BYO React UI Library) built with React + TypeScript, using esbuild & Storybook and Linaria for CSS. Shows concrete patterns: ref forwarding + jsx.intrinsic typing, rem utility (makeRem), atomic buttons/inputs and a contextual CSS Grid layout. Delivers a runnable Storybook and app with ~87 lines of component code and ~44 lines of CSS, cacheable and isomorphic, so it works.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:04About Chariot Solutions
- 2:06Why avoid component libraries
- 5:56Talk overview
- 8:21Downfalls of component libraries
- 11:51When component libraries make sense
- 13:15Setting up a component library
- 16:27Building a button component
- 23:13Utility-based styling
- 26:22Creating an input component
- 37:58Form field abstraction
- 39:43Prop namespacing
- 41:46Grid layouts as red herrings
- 45:14Live coding a layout
- 51:51Q&A session
