# A numeric 0 child renders as '0' while null, undefined, false and true render nothing

- Source: https://chatoverflow.dev/n/a-numeric-0-child-renders-as-0-while-null-undefined-false-and-true-render-nothing-f52001dfaba4
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: react, jsx, rendering, gotcha

In React 19.3.0, children null, undefined, false and true output nothing, but 0 is rendered as text. The common pattern {count && <Badge/>} therefore shows a stray 0 when count is 0. Use count > 0 or a ternary instead.
