Skip to content

Commit 9c258ff

Browse files
committed
docs(cn): modify related complaints
1 parent 8d2baba commit 9c258ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/reference/react/PureComponent.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ title: PureComponent
44

55
<Pitfall>
66

7-
我们建议将组件定义为函数而不是类[查看如何迁移](#alternatives)
7+
我们建议使用函数式组件而非类式组件[查看如何迁移](#alternatives)
88

99
</Pitfall>
1010

1111
<Intro>
1212

13-
`PureComponent` 类似于 [`Component`](/reference/react/Component)但是它会跳过 props 和 state 的重新渲染。React 仍然支持类组件,但我们不建议在新代码中使用它们。
13+
`PureComponent` 类似于 [`Component`](/reference/react/Component)但是当 props 和 state 与之前保持一致时会跳过重新渲染。React 仍然支持类式组件,但我们不建议在新代码中使用它们。
1414

1515
```js
1616
class Greeting extends PureComponent {
@@ -109,7 +109,7 @@ label {
109109

110110
<Pitfall>
111111

112-
我们建议将组件定义为函数而不是类[查看如何迁移](#alternatives)
112+
我们建议使用函数式组件而非类式组件[查看如何迁移](#alternatives)
113113

114114
</Pitfall>
115115

0 commit comments

Comments
 (0)