Skip to content

Instantly share code, notes, and snippets.

@abedzantout
Created September 21, 2019 11:40
Show Gist options
  • Save abedzantout/880825bf605fa1a168e040e8582a3986 to your computer and use it in GitHub Desktop.
Save abedzantout/880825bf605fa1a168e040e8582a3986 to your computer and use it in GitHub Desktop.
Updated Layout Component to include tags
import React, {FunctionComponent, Fragment, ReactNode} from 'react';
type Props = {
metaTags: MetaTags;
children: ReactNode;
}
const Layout: FunctionComponent<Props> = ({metaTags, children}) => {
return (
<Fragment>
<Meta tags={metaTags}/>
<div className="layout">
<main>
{children}
</main>
</div>
</Fragment>
);
};
export default Layout;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment