Skip to content

Instantly share code, notes, and snippets.

@ryanbelke
Last active May 3, 2020 23:49
Show Gist options
  • Select an option

  • Save ryanbelke/76fd9f9a9a339022d827ea31796e4326 to your computer and use it in GitHub Desktop.

Select an option

Save ryanbelke/76fd9f9a9a339022d827ea31796e4326 to your computer and use it in GitHub Desktop.
_app.js without Container component
/* _app.js */
import React from "react";
import App from "next/app";
import Head from "next/head";
export default class MyApp extends App {
render() {
const { Component, pageProps } = this.props;
return (
<>
<Head>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossOrigin="anonymous"
/>
</Head>
<Component {...pageProps} />
</>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment