Created
June 11, 2020 09:34
-
-
Save hadoan/1f74bf6b5e7fee42515f86c11c61ef99 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
import React from 'react' | |
import PropTypes from "prop-types" | |
import Menu from './menu' | |
import HomeSearch from './home-search' | |
import Footer from './footer' | |
const Layout = ({ children }) => { | |
return ( | |
<> | |
<Menu></Menu> | |
<HomeSearch></HomeSearch> | |
{ children } | |
<Footer></Footer> | |
</> | |
) | |
} | |
Layout.propTypes = { | |
children: PropTypes.node.isRequired, | |
} | |
export default Layout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment