docs: add missing period in shouldComponentUpdate doc (#8720)
Nik Nyby committed
Jan 9, 2017 at 11:22 UTC
fa4f79f9fc94a26c9ce18478e24a8bfd8cb39267
1 file changed
+1
-1
docs/docs/reference-react-component.md
+1
-1
@@ -175,7 +175,7 @@ shouldComponentUpdate(nextProps, nextState)
175
176
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.
177
178
-`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.
178
+`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.
179
180
Returning `false` does not prevent child components from re-rendering when *their* state changes.
181