Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

adding bootstrap in next Js

import { Html, Head, Main, NextScript } from "next/document";

export default function Document() {
  return (
    <Html>
      <Head>
        <link
          href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css"
          rel="stylesheet"
          integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1"
          crossOrigin="anonymous"
        />
      </Head>
      <body>
        <Main />
        <NextScript />
      </body>
    </Html>
  );
}
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #adding #bootstrap #Js
ADD COMMENT
Topic
Name
6+9 =