-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// "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