Skip to content

Commit b13626d

Browse files
committed
componentDidMount not componentWillMount
Counterpart to facebook/react@774f5a0.
1 parent 95d6c83 commit b13626d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var CommentBox = React.createClass({
5353
getInitialState: function() {
5454
return {data: []};
5555
},
56-
componentWillMount: function() {
56+
componentDidMount: function() {
5757
this.loadCommentsFromServer();
5858
setInterval(this.loadCommentsFromServer, this.props.pollInterval);
5959
},

0 commit comments

Comments
 (0)