Skip to content

Commit 18a2da2

Browse files
dblateotakustay
authored andcommitted
修改两处笔误 (#61)
1 parent ddb0eff commit 18a2da2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

react-style-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
使用类属性语法虽然可以避免引入一个`autobind`的实现,但存在一定的缺陷:
255255

256256
1. 对于新手不容易理解函数内的`this`的定义。
257-
2. 无法在函数是使用其它的装饰器(如`memoize``deprecated`或检验相关的逻辑等)。
257+
2. 无法在函数上使用其它的装饰器(如`memoize``deprecated`或检验相关的逻辑等)。
258258

259259
因此,推荐使用`@autobind`装饰器实现`this`的事先绑定,推荐使用[core-decorators](https://www.npmjs.com/package/core-decorators)库提供的相关装饰器实现。
260260

@@ -292,7 +292,7 @@
292292
return (
293293
<div>
294294
<span>Hello World</span>
295-
</div>;
295+
</div>
296296
);
297297
}
298298
}

0 commit comments

Comments
 (0)