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 8d2baba commit 9c258ffCopy full SHA for 9c258ff
src/content/reference/react/PureComponent.md
@@ -4,13 +4,13 @@ title: PureComponent
4
5
<Pitfall>
6
7
-我们建议将组件定义为函数而不是类。[查看如何迁移](#alternatives)。
+我们建议使用函数式组件而非类式组件。[查看如何迁移](#alternatives)。
8
9
</Pitfall>
10
11
<Intro>
12
13
-`PureComponent` 类似于 [`Component`](/reference/react/Component),但是它会跳过 props 和 state 的重新渲染。React 仍然支持类组件,但我们不建议在新代码中使用它们。
+`PureComponent` 类似于 [`Component`](/reference/react/Component),但是当 props 和 state 与之前保持一致时会跳过重新渲染。React 仍然支持类式组件,但我们不建议在新代码中使用它们。
14
15
```js
16
class Greeting extends PureComponent {
@@ -109,7 +109,7 @@ label {
109
110
111
112
113
114
115
0 commit comments