add bootstrap to gatsby
npm install --save react-bootstrap
npm install --save bootstrapimport 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>
);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>
);
Also in JavaScript:
- mongoose find by and delete
- convert image url to base64 javascript
- js queuemicrotask
- agregar año en javascript
- javascript get black or white text base on color
- checkbox jquery checked
- for each js
- p5js add canvas in middle
- remove element by class
- angular material remove outline
- javascript iterate object
- age validation jquery
- navigation in react native
- javascript array group by id
- adding a terminal iframe
- javascript object destructuring rename
- javascript find directory root
- react form hook trigger is not a function
- loop through object in array javascript
- react project ideas
- on enter key press react
- timestamp to date javascript
- how to generate random numbers in javascript when conditions are fulfiiled
- javascript get string from array with space between