From 3baa47ca7b98e446969049fbe5ec789313bf537f Mon Sep 17 00:00:00 2001 From: Eric Pitcher Date: Sat, 24 Dec 2016 18:18:30 +0100 Subject: [PATCH] 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. --- docs/docs/conditional-rendering.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/docs/conditional-rendering.md b/docs/docs/conditional-rendering.md index c737206295..ea1be02a4c 100644 --- a/docs/docs/conditional-rendering.md +++ b/docs/docs/conditional-rendering.md @@ -238,3 +238,5 @@ 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.