Skip to content

Commit 2806dfb

Browse files
committed
Bind this_
1 parent 0139318 commit 2806dfb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/React/Basic.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ exports.react_ = function(spec) {
88
return spec.initialState(this.props);
99
},
1010
componentDidMount: function() {
11+
var this_ = this;
1112
spec.setup(this.props, this.state, function(newState) {
1213
return function() {
1314
this_.setState(newState);

0 commit comments

Comments
 (0)