We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddb0eff commit 18a2da2Copy full SHA for 18a2da2
react-style-guide.md
@@ -254,7 +254,7 @@
254
使用类属性语法虽然可以避免引入一个`autobind`的实现,但存在一定的缺陷:
255
256
1. 对于新手不容易理解函数内的`this`的定义。
257
- 2. 无法在函数是使用其它的装饰器(如`memoize`、`deprecated`或检验相关的逻辑等)。
+ 2. 无法在函数上使用其它的装饰器(如`memoize`、`deprecated`或检验相关的逻辑等)。
258
259
因此,推荐使用`@autobind`装饰器实现`this`的事先绑定,推荐使用[core-decorators](https://www.npmjs.com/package/core-decorators)库提供的相关装饰器实现。
260
@@ -292,7 +292,7 @@
292
return (
293
<div>
294
<span>Hello World</span>
295
- </div>;
+ </div>
296
);
297
}
298
0 commit comments