Skip to content

Instantly share code, notes, and snippets.

@antonjb
Last active September 9, 2019 12:54
Show Gist options
  • Save antonjb/ca970c212cfda90452fc5021afdbab89 to your computer and use it in GitHub Desktop.
Save antonjb/ca970c212cfda90452fc5021afdbab89 to your computer and use it in GitHub Desktop.
export const SiteComposition = createRegisterableComposition<
"header" | "content"
>()("site-composition", contentAreas => (
<div>
<header>{contentAreas.header}</header>
<main>{contentAreas.content}</main>
</div>
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment