Cross-domain components with React+XComponents at PayPal — Daniel Brain
summary
PayPal uses Node, React and an open‑source XComponent library to expose UI as true cross‑domain components: a single iframe-hosted SVG PayPal button plus a checkout iframe rendered as a popup. Props and callbacks pass natively across frames via React bindings, and perceived load time drops by using pre-rendering (draw initial button UI into the iframe before the real app loads). A/B tests show conversion improvements, and render-to-parent orchestration lets the iframe draw outside its bounds for native-feeling interactions.
AI-written summary · about
chapters (4)
related talks
06mLightning Talk: Payment Request API in a React Higher-Order Component
27mMigrating Safely to React
44mThird-Party Banking Lib: Web Components, React
21mMigrating critical apps to React
30mDesigning with React
26mFrontend At Scale - Experiences Using React In A Large Organization
23mBest Practices for reusable UI components
45mReact Web Components How It Is and How It Could Be
