Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating bootstrap doc #5565

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions docusaurus/docs/adding-bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,31 @@ id: adding-bootstrap
title: Adding Bootstrap
---

Install Bootstrap from npm.

```sh
npm install --save bootstrap@4
```

Import Bootstrap CSS in the beginning of your `src/index.css` file:

```index.css
@import "../node_modules/bootstrap/dist/css/bootstrap.css";
```

Now, you are ready to use bootstrap.

```Sample Usage
const sample = () => (
<div className="pt-5 text-center">
<h2>Sample</h2>
</div>
);
```


## Adding Reactstrap

You don’t have to use [reactstrap](https://reactstrap.github.io/) together with React but it is a popular library for integrating Bootstrap with React apps. If you need it, you can integrate it with Create React App by following these steps:

Install reactstrap and Bootstrap from npm. reactstrap does not include Bootstrap CSS so this needs to be installed as well:
Expand Down