File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 13
13
</ head >
14
14
< body >
15
15
< div id ="content "> </ div >
16
- < script type ="text/babel " src ="scripts/example.js "> </ script >
17
- < script type ="text/babel ">
18
- // To get started with this tutorial running your own code, simply remove
19
- // the script tag loading scripts/example.js and start writing code here.
20
- </ script >
16
+ <!--<script type="text/babel" src="scripts/example.js"></script>-->
17
+ < script type ="text/babel " src ="scripts/tutorial1.js "> </ script >
21
18
</ body >
22
19
</ html >
Original file line number Diff line number Diff line change
1
+ /* global React, ReactDOM */
2
+
3
+ var CommentBox = React . createClass ( {
4
+ render : function ( ) {
5
+ return (
6
+ < div className = "commentBox" >
7
+ Hello, world! I am a CommentBox.
8
+ </ div >
9
+ ) ;
10
+ }
11
+ } ) ;
12
+
13
+ ReactDOM . render (
14
+ < CommentBox /> ,
15
+ document . getElementById ( 'content' )
16
+ ) ;
You can’t perform that action at this time.
0 commit comments