“Reactjs”的版本间的差异
来自tomtalk
(创建页面,内容为“==bind(): React component methods may only be bound to the component instance.== If you get this error: bind(): React component methods may only be bound to the com...”) |
(没有差异)
|
2016年1月27日 (三) 08:59的版本
bind(): React component methods may only be bound to the component instance.
If you get this error: bind(): React component methods may only be bound to the component instance. It’s probably because you are using ES5 bind on a component property in order to curry a property and you are passing in a scope as the first argument (such as this). A simple fix is to pass null in as the scope argument.