File tree 2 files changed +24
-3
lines changed 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
< body >
21
21
< div id ="root "> </ div >
22
+ <!--[if lt IE 9]>
23
+ <script>
24
+ (function(){
25
+ var ef = function(){};
26
+ window.console = window.console || {log:ef,warn:ef,error:ef,dir:ef};
27
+ }());
28
+ </script>
29
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
30
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv-printshiv.min.js"></script>
31
+ <script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-shim.js"></script>
32
+ <script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-sham.js"></script>
33
+ <![endif]-->
22
34
<!-- Load Babel -->
23
35
< script src ="http://code.jquery.com/jquery-3.2.0.min.js "> </ script >
24
36
<!-- Latest compiled and minified JavaScript -->
25
37
< script src ="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js " integrity ="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa " crossorigin ="anonymous "> </ script >
26
38
< script src ="https://unpkg.com/babel-standalone@6/babel.min.js "> </ script >
27
39
< script src ="https://unpkg.com/react@15/dist/react.js "> </ script >
28
40
< script src ="https://unpkg.com/react-dom@15/dist/react-dom.js "> </ script >
41
+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/react-bootstrap/0.30.8/react-bootstrap.min.js "> </ script >
29
42
<!-- Your custom script here -->
30
43
< script type ="text/babel " src ="./jsx/app.jsx "> </ script >
31
44
</ body >
Original file line number Diff line number Diff line change 1
-
2
1
class Greeting extends React . Component {
3
2
render ( ) {
4
- return < h1 > Hello World!</ h1 > ;
3
+ return (
4
+ < ReactBootstrap . Jumbotron >
5
+ < h1 > Hello, world!</ h1 >
6
+ < p > This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</ p >
7
+ < p > < ReactBootstrap . Button bsStyle = "primary" > Learn more</ ReactBootstrap . Button > </ p >
8
+ </ ReactBootstrap . Jumbotron >
9
+ ) ;
5
10
}
6
11
}
7
12
8
13
ReactDOM . render (
9
- < Greeting /> ,
14
+ < ReactBootstrap . Grid >
15
+ < Greeting />
16
+ </ ReactBootstrap . Grid >
17
+ ,
10
18
document . getElementById ( 'root' )
11
19
) ;
You can’t perform that action at this time.
0 commit comments