Giter Club home page Giter Club logo

react-bootstrap5-template's Introduction

react-bootstrap5-template

this is a template for a React App that uses Bootstrap 5 Alpha(SASS)

Below is the step by step process how I setup this template.

  1. create a new react app using create-react-app. I run the following command: "npx create-react-app react-bootstrap5-template"
  2. I install bootstrap alpha using the following command: npm install bootstrap@next
  3. I install node-sass so that I can use the bootstrap's sass for customization. I run this command: npm install node-sass
  4. Include cdn of bootstrap.min.js and popper.min.js(bootstrap dependency) in public/index.html. Kindly check the index.html for reference.
  5. Cleanup index.js and App.js, I removed all unnecessary elements(service worker, index.css, logo.svg, etc...)
  6. create scss folder then main.scss inside the folder.
  7. I import the bootstrap.scss in the main.scss, and added sample customization, e.g. .custom-element and changed $body-bg value to #00aef0(skyblue...ish), just check the main.scss file.
  8. In App.js, I imported the scss/main.scss
  9. Added sample bootstrap components in App.js
  10. npm start...boom!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.