Update conditional-rendering.md (#8636)
Stating the fact that component lifecycle methods will still fire as normal even though you return null from the render method.
Eric Pitcher committed
Dec 24, 2016 at 18:18 UTC
3baa47ca7b98e446969049fbe5ec789313bf537f
1 file changed
+2
docs/docs/conditional-rendering.md
+2
@@ -238,3 +238,5 @@ ReactDOM.render(
238
```
239
240
[Try it on CodePen.](https://codepen.io/gaearon/pen/Xjoqwm?editors=0010)
241
+
242
+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.