---
title: "Discussion on \"Common Mistakes in Conditional Rendering\" | Hashnode"
description: "Discussion on \"Common Mistakes in Conditional Rendering\". https://youtu.be/Rr5AqASIyxw\n \nTL;DR\n\nWhen using 0 in JSX, although it's falsy, it still gets rendered.\n\nOfficial documentation specifically warns to be careful\n\n\nLogical AND operator (&&)\nBe especially mindful of the usage of the number 0 when using..."
url: "https://hashnode.com/posts/common-mistakes-in-conditional-rendering/64e1a8edb40dfbd834c8abf5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Common Mistakes in Conditional Rendering](https://jason60810.hashnode.dev/common-mistakes-in-conditional-rendering?utm_source=hashnode&utm_medium=feed)

https://youtu.be/Rr5AqASIyxw TL;DR When using 0 in JSX, although it's falsy, it still gets rendered. Official documentation specifically warns to be careful Logical AND operator (&&) Be especially mindful of the usage of the number 0 when using...

Aug 20, 2023 · 1 min read · jason60810.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Jason Chen](https://hashnode.com/@jason60810)

@jason60810

  
[View profile](https://hashnode.com/@jason60810)

Nothing is true, everything is permitted.

Nothing is true, everything is permitted.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
