-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
add bootstrap 4 #4495
Closed
Closed
add bootstrap 4 #4495
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -846,20 +846,21 @@ You don’t have to use [React Bootstrap](https://react-bootstrap.github.io) tog | |
Install React Bootstrap and Bootstrap from npm. React Bootstrap does not include Bootstrap CSS so this needs to be installed as well: | ||
|
||
```sh | ||
npm install --save react-bootstrap bootstrap@3 | ||
npm install bootstrap@4 | ||
``` | ||
|
||
Alternatively you may use `yarn`: | ||
|
||
```sh | ||
yarn add react-bootstrap bootstrap@3 | ||
yarn add bootstrap@4.0.0-alpha.6 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why alpha? |
||
``` | ||
|
||
Import Bootstrap CSS and optionally Bootstrap theme CSS in the beginning of your ```src/index.js``` file: | ||
|
||
```js | ||
import 'bootstrap/dist/css/bootstrap.css'; | ||
import 'bootstrap/dist/css/bootstrap-theme.css'; | ||
import 'bootstrap/dist/css/bootstrap-grid.css'; | ||
import 'bootstrap/dist/css/bootstrap-reboot.css'; | ||
// Put any other imports below so that CSS from your | ||
// components takes precedence over default styles. | ||
``` | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This contradicts the line above, which says "Install React Bootstrap and Bootstrap from npm" (not just install Bootstrap). To use Bootstrap 4 (which is not yet supported by React Bootstrap), reactstrap is a popular option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to recommend Reactstrap for now.