diff --git a/content/docs/conditional-rendering.md b/content/docs/conditional-rendering.md index ec372541..8c85ee84 100644 --- a/content/docs/conditional-rendering.md +++ b/content/docs/conditional-rendering.md @@ -152,6 +152,19 @@ It works because in JavaScript, `true && expression` always evaluates to `expres Therefore, if the condition is `true`, the element right after `&&` will appear in the output. If it is `false`, React will ignore and skip it. +Note that returning a falsy expression will still cause the element after `&&` to be skipped but will return the falsy expression. In the example below, `