Skip to content

Instantly share code, notes, and snippets.

@bermanboris
Forked from gustavlrsn/Layout.js
Created July 30, 2017 09:03
Show Gist options
  • Save bermanboris/eae47ad346c26eb89d5c3aa444bd3f37 to your computer and use it in GitHub Desktop.
Save bermanboris/eae47ad346c26eb89d5c3aa444bd3f37 to your computer and use it in GitHub Desktop.
Example bootstrap 4 integration into Next.js, with the reactstrap package
import Head from 'next/head'
import { Container } from 'reactstrap'
const Layout = (props) => (
<div>
<Head>
<title>PairHub</title>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" />
</Head>
<Container>
{props.children}
</Container>
</div>
)
export default Layout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment