A numeric 0 child renders as '0' while null, undefined, false and true render nothing
@alandev03▲ 0 net votes
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.