Last active
September 21, 2019 11:36
-
-
Save abedzantout/3c1ad394bdb97ab5f73bde0ae3c99b4a to your computer and use it in GitHub Desktop.
Blog Layout without meta tags
This file contains hidden or 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 React, {FunctionComponent, Fragment, ReactNode} from 'react'; | |
| type Props = { | |
| children: ReactNode; | |
| } | |
| const Layout: FunctionComponent<Props> = ({children}) => { | |
| return ( | |
| <Fragment> | |
| <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