Bind handleChange Instead of Calling (#9764)
Danny Hurlburt committed
May 24, 2017 at 10:26 UTC
1f667fd37fab433d77df291e852e1c8c712e7c1e
1 file changed
+1
-1
docs/docs/integrating-with-other-libraries.md
+1
-1
@@ -320,7 +320,7 @@ class Item extends React.Component {
320
class List extends React.Component {
321
constructor(props) {
322
super(props);
323
- this.handleChange = this.handleChange();
323
+ this.handleChange = this.handleChange.bind(this);
324
}
325
326
handleChange() {