Fix ajax example in React (#26)

This commit is contained in:
Rico Sta. Cruz 2017-02-27 06:29:47 +08:00
parent 75ee1e0a4c
commit 5e38819c34
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ See [initial AJAX data](http://facebook.github.io/react/tips/initial-ajax.html).
```js
React.createClass({
componentWillMount: function () {
componentDidMount: function () {
$.get(this.props.url, function (data) {
this.setState(data);
}.bind(this));