Closed rstacruz closed 8 years ago
I tried to fix this up this morning, but I think it's going to take a little more work. For now, just replacing it with something like a <noscript/>
should work. null
should render as <noscript/>
tags when I get it working correctly.
oh.. so thats what those noscript tags are for
couldn't nulls be handled in the same way as []
? empty arrays are common:
items = [] // has nothing
<ul>
{ items.map((item) => <li>{ item }</li>) }
</ul>
(or do those turn out to be noscript's too?)
Here's a simple component that uses the ternary operator to show something conditionally.
This now results in:
The workaround is to use an empty array instead: