Building Considerate React Component APIs with TypeScript
summary
A small web app called Barkpark gets ported to TypeScript and component APIs get tightened: vague props like input1 become explicit headerText/bodyText, selects move from any to typed option objects then to a generic T so value types stay consistent, sizes use string literal union for IDE autocomplete, and an erroneous Partial is replaced with omit to prevent misleading props. The wireframe lands and the component APIs prove easier to use and safer.
AI-written summary · about
chapters (5)
related talks
37mBuilding Better Components — A Journey to a More Resilient Frontend
49mTypescript + React
23mTypeScript + React = ❤️
42mTypeScript Patterns for Better React Components
18mTypeScript Patterns For Better React Components
27mLearning TypeScript in React during year one
35m팀장님 우린 내일부터 React+ TypeScript로 갑니다
01h 25mWorkshop: TypeScript Plus React = Love
