~/talk

Secrets of building robust UI components

Talkat NDC Oslo 2023 · 2023-05-22..05-26· [react, component-design]
slides:none on file

Practical recipe for durable React components: use deterministic tooling like eslint-config-banana and import/format plugins including prettier-plugin-tailwindcss, build components in isolation with Storybook, and validate runtimes with Zod. Prefer string-union props over many booleans, expose minimal APIs (ban className/style), adopt compound and polymorphic patterns, and use generics or overloads for strict types. Enable TypeScript strictness and noUncheckedIndexedAccess to catch edge cases early. Examples include auto-sorted imports and a minimal primitive component pattern that keeps renders flat.

AI-written summary · about

  1. 0:00Start
  2. 0:04Secrets of building robust
  3. 13:13Component Driven Development
  4. 20:51Reuse existing types and interfaces
  5. 25:41Overload function components
  6. 26:16type vs interface in React component props
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.