From fa4f79f9fc94a26c9ce18478e24a8bfd8cb39267 Mon Sep 17 00:00:00 2001 From: Nik Nyby Date: Mon, 9 Jan 2017 11:22:04 -0500 Subject: [PATCH] docs: add missing period in shouldComponentUpdate doc (#8720) --- docs/docs/reference-react-component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/reference-react-component.md b/docs/docs/reference-react-component.md index 6ca846e21c2db..b274da6edf332 100644 --- a/docs/docs/reference-react-component.md +++ b/docs/docs/reference-react-component.md @@ -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.