“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...”)
 
Tom讨论 | 贡献
第1行: 第1行:
 +
=快速入门=
 +
 +
==安装==
 +
 
==bind(): React component methods may only be bound to the component instance.==
 
==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.
 
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.

2017年10月26日 (四) 09:24的版本

快速入门

安装

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.