Last active
May 19, 2022 03:14
-
-
Save mhevery/b1f5ce9fe90a76e8a16c738091a86dca to your computer and use it in GitHub Desktop.
Value of Builder.io Slides
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
export function LandingPage() { | |
return ( | |
<> | |
<div class="hero"> | |
<img src="./hero.jpg"/> | |
<span>10% SALE</span> | |
</div> | |
<ProductCard sku="MB002"/> | |
</> | |
); | |
} |
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
export function LandingPage() { | |
return ( | |
<> | |
<div class="hero"> | |
<img src="./hero.jpg"/> | |
<span>{cms.hero.text}</span> | |
</div> | |
{cms.featuredSkus.map((sku) => <ProductCard sku={sku}/>)} | |
</> | |
); | |
} |
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
import {BuilderComponent, regiterComponent} from '@builder.io/sdk-react'; | |
export function LandingPage() { | |
return ( | |
<> | |
<BuilderContent/> | |
</> | |
); | |
} | |
registerComponent(ProductCard) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment