Update conditional-rendering.md (#990)

`componentWillUpdate` method will be called before the render method so the returning value of the render method does not affect.
This commit is contained in:
Adam Saghy
2018-06-22 23:38:31 +01:00
committed by Dan Abramov
parent 9c1fb9cbe8
commit 2ea33ffc3d

View File

@@ -239,4 +239,4 @@ ReactDOM.render(
[Try it on CodePen.](https://codepen.io/gaearon/pen/Xjoqwm?editors=0010)
Returning `null` from a component's `render` method does not affect the firing of the component's lifecycle methods. For instance, `componentWillUpdate` and `componentDidUpdate` will still be called.
Returning `null` from a component's `render` method does not affect the firing of the component's lifecycle methods. For instance `componentDidUpdate` will still be called.