Skip to content

Instantly share code, notes, and snippets.

@hadoan
Created June 11, 2020 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadoan/1f74bf6b5e7fee42515f86c11c61ef99 to your computer and use it in GitHub Desktop.
Save hadoan/1f74bf6b5e7fee42515f86c11c61ef99 to your computer and use it in GitHub Desktop.
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