Browse Source

Rolled back empty line removal.

main
Szymon Nowicki 7 years ago
committed by GitHub
parent
commit
b646c386b8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      content/docs/reference-react.md

1
content/docs/reference-react.md

@ -70,6 +70,7 @@ See the [React.Component API Reference](/docs/react-component.html) for a list o
* * *
### `React.PureComponent`
`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.
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.

Loading…
Cancel
Save