File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ prev: jsx-in-depth.html
66next : jsx-gotchas.html
77---
88
9- If you know all the properties that you want to place on a component a head of time, it is easy to use JSX:
9+ If you know all the properties that you want to place on a component ahead of time, it is easy to use JSX:
1010
1111``` javascript
1212 var component = < Component foo= {x} bar= {y} / > ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ var FancyCheckbox = React.createClass({
3737 );
3838 }
3939});
40- React .renderComponent (
40+ React .render (
4141 < FancyCheckbox checked= {true } onClick= {console .log }>
4242 Hello world!
4343 < / FancyCheckbox> ,
@@ -70,7 +70,7 @@ var FancyCheckbox = React.createClass({
7070 );
7171 }
7272});
73- React .renderComponent (
73+ React .render (
7474 < FancyCheckbox checked= {true } onClick= {console .log }>
7575 Hello world!
7676 < / FancyCheckbox> ,
You can’t perform that action at this time.
0 commit comments