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