Cài đặt nextjs với react-bootstrap

Setup nextjs:

npx create-next-app

Setup react-boostrap

npm install react-bootstrap bootstrap

Edit file _app.js:

// import '../styles/globals.css'
import 'bootstrap/dist/css/bootstrap.min.css';

function MyApp({ Component, pageProps }) {
  return <Component {...pageProps} />
}

export default MyApp

Edit file index.js

Run:

yarn dev

Kết quả:

0 Shares

Leave a Reply

avatar
  Subscribe  
Notify of