add bootstrap to gatsby
npm install --save react-bootstrap
npm install --save bootstrap
add bootstrap to gatsby
npm install --save react-bootstrap
npm install --save bootstrap
add bootstrap to gatsby
import React from 'react';
import '../path_to/bootstrap.min.css';
const MyComponent = () => (
<div>
<p>This contains a button which uses the bootstrap.css</p>
<button class="btn btn-primary">Click me</button>
</div>
);
install bootstrap in gatsbyjs
// npm i bootstrap jquery popper.js
// On gatsby-browser.js
import "bootstrap/dist/css/bootstrap.min.css";
import "jquery/dist/jquery.min.js";
import "popper.js/dist/popper.min";
import "bootstrap/dist/js/bootstrap.min.js";
add bootstrap to gatsby
import React from 'react';
import { Button } from 'react-bootstrap';
const MyComponent = () => (
<div>
<p>This contains a button which is exported by react-bootstrap</p>
<Button variant="primary">Primary</Button>
</div>
);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us