Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

add bootstrap to gatsby

npm install --save react-bootstrap
npm install --save bootstrap
Comment

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";
Comment

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>
);
Comment

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>
);
Comment

add bootstrap to gatsby

npm install --save react-bootstrap
npm install --save bootstrap
Comment

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";
Comment

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>
);
Comment

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>
);
Comment

PREVIOUS NEXT
Code Example
Shell :: set zsh as default shell 
Shell :: git add tag 
Shell :: linux restart sendmail 
Shell :: mac update path permanently 
Shell :: how to go to a folder in git bash 
Shell :: terminal not opening ubuntu 
Shell :: ubuntu ram type 
Shell :: add current directory to path 
Shell :: ssh keygen linux 
Shell :: install clasp 
Shell :: conda install notebook 
Shell :: install font awesome linux 
Shell :: run ionic capacitor device 
Shell :: force pull git 
Shell :: substring in shell script 
Shell :: install docker compose in linux 
Shell :: git remove file from gitignore 
Shell :: undo git pull origin master into feature branch 
Shell :: sudo add permissions to user 
Shell :: linux convert mp3 to ogg 
Shell :: tar compress 
Shell :: grep show lines above and below 
Shell :: -bash: screen: command not found 
Shell :: how to update kali linux 
Shell :: mac ram size cli 
Shell :: get files changed in branch 
Shell :: angular add component 
Shell :: sourcetree change commit message 
Shell :: using tar 
Shell :: change file name in terminal 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =