false, true, null and undefined render nothing, and '' becomes an
empty text node that draws nothing, so every spelling of a conditional reads as
it does in JSX: cond && Text('…'), cond ? Text('…') : null and
cond || node. React 19.2.8 skips the same values, measured rather than assumed.
A number is text, 0 included. React renders 0 as the text 0 rather
than skipping it, and so does this, so items.length && … shows a zero. NaN
and 0n render their spellings too. An empty array flattens to nothing.
Anything that can sit inside a container.
false,true,nullandundefinedrender nothing, and''becomes an empty text node that draws nothing, so every spelling of a conditional reads as it does in JSX:cond && Text('…'),cond ? Text('…') : nullandcond || node. React 19.2.8 skips the same values, measured rather than assumed.A number is text,
0included. React renders0as the text0rather than skipping it, and so does this, soitems.length && …shows a zero.NaNand0nrender their spellings too. An empty array flattens to nothing.