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

PREVIOUS NEXT
Code Example
Shell :: how to install sublime text 3 on ubuntu 20.04 
Shell :: show env in bash 
Shell :: ubuntu instlal kubectl 
Shell :: node install mint 
Shell :: ubuntu login as root 
Shell :: bash print binary file 
Shell :: Test connection to Redis with netcat 
Shell :: undo unstaged changes git 
Shell :: kill localhost port 
Shell :: ubuntu install filebeat 
Shell :: git commands 
Shell :: Go install /linux 
Shell :: how to install linux headers on arch 
Shell :: initialize github repository 
Shell :: phpall version extension installation command on centos 7 
Shell :: check size folder terminal 
Shell :: diskpart commands 
Shell :: linux kill a port 
Shell :: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. 
Shell :: git add and commit all 
Shell :: edit file terminal 
Shell :: git ignore folder except one file 
Shell :: github delete last commit 
Shell :: deleting remote branch in GitHub 
Shell :: command to install express graphql 
Shell :: cmake set build type from command line 
Shell :: amend commit 
Shell :: https://git-lfs.github.com/ 
Shell :: clear arp table ubuntu] 
Shell :: vagrant run paralel 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =