What does a well-designed component API look like? Do you often find yourself forking components instead of extending them? Should you use props, hooks, or composition? In this lightning talk, I'll address common pitfalls in component design and share insights from my experience as a maintainer of Shopify's open-source framework, Hydrogen, and from building scalable design systems at Personio. By the end, I'll present a framework I use for iterating on and creating effective APIs.
This talk has been presented at React Day Berlin 2024, check out the latest edition of this React Conference.