Skip to content

Commit

Permalink
docs: add missing period in shouldComponentUpdate doc (facebook#8720)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolas authored and gaearon committed Jan 9, 2017
1 parent fb7e494 commit fa4f79f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/reference-react-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ shouldComponentUpdate(nextProps, nextState)

Use `shouldComponentUpdate()` to let React know if a component's output is not affected by the current change in state or props. The default behavior is to re-render on every state change, and in the vast majority of cases you should rely on the default behavior.

`shouldComponentUpdate()` is invoked before rendering when new props or state are being received. Defaults to `true` This method is not called for the initial render or when `forceUpdate()` is used.
`shouldComponentUpdate()` is invoked before rendering when new props or state are being received. Defaults to `true`. This method is not called for the initial render or when `forceUpdate()` is used.

Returning `false` does not prevent child components from re-rendering when *their* state changes.

Expand Down

0 comments on commit fa4f79f

Please sign in to comment.