Last active
December 31, 2019 09:40
-
-
Save bogdanq/9b7132ad7540b6f4e5b8d578e5c1cc8a to your computer and use it in GitHub Desktop.
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
const GenericTemplate = ({ children, hero }) => { | |
return ( | |
<Container> | |
<Header /> | |
{hero} | |
{children} | |
<Footer /> | |
</Container> | |
) | |
} | |
//usage example | |
const MainTemplate = ({ children, hero }) => ( | |
<GenericTemplate hero={hero} children={children} /> | |
) | |
const ChatTemplate = ({ children }) => ( | |
<GenericTemplate children={children} /> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment