Skip to content

Commit d228ff7

Browse files
authored
Merge pull request reactjs#433 from sznowicki/patch-1
Update `React.PureComponent` reference.
2 parents 8582f9f + b646c38 commit d228ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/reference-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ See the [React.Component API Reference](/docs/react-component.html) for a list o
7171

7272
### `React.PureComponent`
7373

74-
`React.PureComponent` is exactly like [`React.Component`](#reactcomponent), but implements [`shouldComponentUpdate()`](/docs/react-component.html#shouldcomponentupdate) with a shallow prop and state comparison.
74+
`React.PureComponent` is similar to [`React.Component`](#reactcomponent). The difference between them is that [`React.Component`](#reactcomponent) doesn't implement [`shouldComponentUpdate()`](/docs/react-component.html#shouldcomponentupdate), but `React.PureComponent` implements it with a shallow prop and state comparison.
7575

7676
If your React component's `render()` function renders the same result given the same props and state, you can use `React.PureComponent` for a performance boost in some cases.
7777

0 commit comments

Comments
 (0)