Reusable UI Components in a Framework Multiverse
summary
Shows how existing React components become native web components and run unchanged in plain HTML or Vue by wrapping them with a small bridge. Builds a video player and like button using Vite, ReactDOM createRoot, custom elements and Shadow DOM, with about 50 lines to wrap a component (plus ~20 lines for Vue). Demonstrates passing non-serializable functions as props, works in a PHP/jQuery page and in Vue, and notes modern framework support only landed in recent releases.
AI-written summary · about
chapters (8)
- 0:00Reusable UI components
- 1:10Framework interoperability challenges
- 3:16Web components as solution
- 6:36Live demo: React to web component
- 10:10Testing in plain HTML
- 11:53Complex props and functions
- 12:35Using in Vue unchanged
- 13:19Summary
related talks
36mBuilding framework agnostic UI with Web Components
44mMake UI Components for the Web Framework Ecosystem
31mNative Web Components - All Frameworks Invited
34mWeb Components & Micro Apps: Angular, React & Vue peacefully united?
34mComponent Documentation Made Easy
34mWeb Components & Micro Apps: Angular, React & Vue peacefully united?
45mLet's Talk About Web Components
36mAngular, React, Vue and co: Harmoniously united by web components and micro apps?
