File tree Expand file tree Collapse file tree 4 files changed +46
-20
lines changed Expand file tree Collapse file tree 4 files changed +46
-20
lines changed Original file line number Diff line number Diff line change
1
+ < html >
2
+ < head >
3
+ < title > Hello World</ title >
4
+ < link href ="lib/bootstrap.css " rel ="stylesheet " />
5
+ < script src ="lib/react.js "> </ script >
6
+ < script src ="lib/JSXTransformer.js "> </ script >
7
+ < script type ="text/jsx " id ="defineRenderSource ">
8
+ /** @jsx React.DOM */
9
+ var UberTag = React . createClass ( {
10
+ render : function ( ) {
11
+ return < h3 > { this . props . children } </ h3 > ;
12
+ }
13
+ } ) ;
14
+
15
+ React . renderComponent (
16
+ < UberTag > Hello World</ UberTag > ,
17
+ document . getElementById ( 'defineRender' )
18
+ ) ;
19
+ </ script >
20
+
21
+ </ head >
22
+ < body >
23
+ < section class ="container ">
24
+ < div class ="result " id ="defineRender "> </ div >
25
+ </ section >
26
+ </ body >
27
+ </ html >
Original file line number Diff line number Diff line change 16
16
< script type ="text/plain " id ="jsxTanslatedSyntaxSource ">
17
17
React . DOM . tagname ( properties , children )
18
18
</ script >
19
- < script type ="text/plain " id ="defineTagSource ">
20
- /** @jsx React.DOM */
21
- var UberTag = React . createClass ( { } ) ;
22
- var uberInstance = < UberTag /> ;
23
- </ script >
24
19
< script type ="text/jsx " id ="defineRenderSource ">
25
20
/** @jsx React.DOM */
26
21
var UberTag = React . createClass ( {
84
79
</ script >
85
80
</ head >
86
81
< body >
82
+ < section class ="container ">
83
+ < h1 > Your Sanbox</ h1 >
84
+ < div class ="row ">
85
+ < div class ="col-sm-12 ">
86
+ < p >
87
+ Most of the code on the pages is live editable. An explanation for how the code viewer works is at the end of lesson 2. "basic.html" has been created for you so that you can experiment in creating your own components in an environment that is already setup.
88
+ </ p >
89
+ </ div >
90
+ </ div >
91
+ </ section >
87
92
< section class ="container ">
88
93
< h1 > Application as a hierarchy of components</ h1 >
89
94
< div class ="row ">
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ Crash Course for React.js
2
+ =========================
3
+
4
+ # Clone or download this respository
5
+ # Open lesson1.html in your browser
6
+ # Enjoy
7
+
8
+
9
+ Got ideas for improvements? Fork me.
You can’t perform that action at this time.
0 commit comments