Skip to content

Instantly share code, notes, and snippets.

@mhevery
Last active May 19, 2022 03:14
Show Gist options
  • Save mhevery/b1f5ce9fe90a76e8a16c738091a86dca to your computer and use it in GitHub Desktop.
Save mhevery/b1f5ce9fe90a76e8a16c738091a86dca to your computer and use it in GitHub Desktop.
Value of Builder.io Slides
export function LandingPage() {
return (
<>
<div class="hero">
<img src="./hero.jpg"/>
<span>10% SALE</span>
</div>
<ProductCard sku="MB002"/>
</>
);
}
export function LandingPage() {
return (
<>
<div class="hero">
<img src="./hero.jpg"/>
<span>{cms.hero.text}</span>
</div>
{cms.featuredSkus.map((sku) => <ProductCard sku={sku}/>)}
</>
);
}
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