dillon1000/react
Commit
Browse files More autobind warnings and invariants
This adds two new warnings and one new invariant: - Warn when using React.autoBind() that it is deprecated. - Throw when calling bind() on an autobound method with the wrong value of "this". Today we'll silently ignore the provided value, which is confusing. - Warn when calling bind() on an autobound method with the *right* value of "this" and no other arguments. This is already done for you by React.
Changed paths1 file
First-parent comparisonsrc/core/ReactCompositeComponent.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…