mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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.