~/talk

Building Better Components — A Journey to a More Resilient Frontend

Talkat Build Stuff 2024 · 2024-11-13..11-15· [react, typescript]
slides:none on file

Real production code shows that using TypeScript unions to group props into categories stops interfaces from bloating when sizes or themes multiply, and replacing paired flags with a single data prop removes redundant booleans. Components extend native elements to extend native HTML attributes so events and children behave as expected, avoiding one-off button V2s. A React pattern builds a component store hook (usePopoverMenu) that returns a shared store for trigger and popover, keeping state, refs and accessibility logic in sync across files.

AI-written summary · about

  1. 0:00🚀 Welcome and Introduction
  2. 1:30The Importance of Resilient Components
  3. 3:00Key Strategies for Managing TypeScript Interfaces
  4. 5:00Grouping Similar Props to Simplify Components
  5. 8:00Applying Categories to Component Props for Flexibility
  6. 10:30Consistency in Naming and Design Across Components
  7. 13:00How Consistent Patterns Can Improve Developer Experience
  8. 16:00Collaborating Across Teams to Build Consistent UI
  9. 19:00The Pitfalls of Re-inventing HTML in Custom Components
  10. 22:00Leveraging TypeScript to Extend Native HTML Attributes
  11. 25:00React Convention: Building Components with Component Stores
  12. 28:00Synchronizing UI Components with Shared Stores in React
  13. 31:00Creating Flexible and Accessible UI with Component Stores
  14. 34:00Final Thoughts: The Role of Trust and Collaboration in Component Design
~/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.