Fix ajax typo
This commit is contained in:
parent
a1dbf7063d
commit
a07454370c
4
react.md
4
react.md
|
@ -162,7 +162,7 @@ table.lc tr>:nth-child(2) { text-align: right; }
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
### Example: loading AJAX data
|
### Example: loading data
|
||||||
See [initial AJAX data](http://facebook.github.io/react/tips/initial-ajax.html).
|
See [initial AJAX data](http://facebook.github.io/react/tips/initial-ajax.html).
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
@ -170,7 +170,7 @@ React.createClass({
|
||||||
componentWillMount: function () {
|
componentWillMount: function () {
|
||||||
$.get(this.props.url, function (data) {
|
$.get(this.props.url, function (data) {
|
||||||
this.setState(data);
|
this.setState(data);
|
||||||
});
|
}.bind(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function () {
|
render: function () {
|
||||||
|
|
Loading…
Reference in New Issue