You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclassName="lead">You can import the lib as AMD modules, CommonJS modules, or as a global JS script.</p>
24
+
<pclassName="lead">You can import the library as CommonJS modules, as ES6 modules via Babel, as AMD modules, or as a global JS script.</p>
25
25
26
26
<p>First add the Bootstrap CSS to your project; check <ahref="http://getbootstrap.com/getting-started/"name="Bootstrap Docs">here</a> if you have not already done that. Note that:</p>
<p>If you install React-Bootstrap using NPM, you can import individual components under <code>react-bootstrap/lib</code> rather than the entire library. Doing so pulls in only the specific components that you use, which will reduce the size of your client bundle.</p>
35
+
34
36
<divclassName="highlight">
35
37
<CodeExample
36
38
codeText={
37
-
`$ npm install react
38
-
$ npm install react-bootstrap`
39
+
`$ npm install react react-bootstrap`
39
40
}
40
41
/>
41
42
<br/>
@@ -53,8 +54,7 @@ var Alert = require('react-bootstrap').Alert;`
53
54
<divclassName="highlight">
54
55
<CodeExample
55
56
codeText={
56
-
`$ npm install react
57
-
$ npm install react-bootstrap`
57
+
`$ npm install react react-bootstrap`
58
58
}
59
59
/>
60
60
<br/>
@@ -72,8 +72,7 @@ import { Button } from 'react-bootstrap';`
<p>The bower repo contains <code>react-bootstrap.js</code> and <code>react-bootstrap.min.js</code> with all components exported in the <code>window.ReactBootstrap</code> object.</p>
<p>The Bower repo contains <code>react-bootstrap.js</code> and <code>react-bootstrap.min.js</code> with all components exported in the <code>window.ReactBootstrap</code> object.</p>
0 commit comments