Skip to content

Instantly share code, notes, and snippets.

@ShopifyEng
Created November 30, 2021 20:39
Show Gist options
  • Save ShopifyEng/ab233f5317890bb8e7c1b80e17ae45fe to your computer and use it in GitHub Desktop.
Save ShopifyEng/ab233f5317890bb8e7c1b80e17ae45fe to your computer and use it in GitHub Desktop.
Remote Rendering: Shopify’s Take on Extensible UI - Components are implemented as regular React components
// "Native" component implementations
function Button({children, onPress}) {
return <button type="button" onClick={() => onPress}>{children}</button>;
}
function Card({children}) {
return <div className="Card">{children}</div>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment