Future-proof your UI: Building with Web Components
summary
SuperTokens builds a prebuilt auth UI as Web Components by compiling JSX with SolidJS → Web Components and shipping a prototype that talks to a live SuperTokens server. The team avoids no shadow DOM (password managers), polyfills slots, and accepts props-as-attributes limited to strings and booleans (serialize for complex objects). Components expose internal state via element properties and emit custom events, and the prototype runs inside React Router, static pages and PWAs, so the approach works end to end.
AI-written summary · about
chapters (9)
- 0:00Introduction to web components
- 2:26Problem with pre-built UI
- 3:09Web components basics and APIs
- 6:17Using Solid with web components
- 8:01Handling props and slots
- 11:13Adding interactivity and state
- 15:05Using in React
- 16:50Live demo and prototype
- 17:10When to use web components
related talks
58mChasing the holy grail: reusable web components and design tokens
56mChasing the holy grail Reusable Web Components and Design Tokens
37mWeb Components for Authentication: The what, the why and the how
36mThe State of Web Components
35mWeb Components - The Lego Bricks of Web Developers
44mWeb Components An Introduction to the Future
36mBuilding framework agnostic UI with Web Components
20mAvoiding vendor lock-in through Web Components
