DEV Community

Discussion on: 4 Ways to Render JSX Conditionally in React

Collapse
 
miketalbot profile image
Mike Talbot ⭐

It's not rendering <div>s it's using Fragments.

Collapse
 
danwalsh profile image
Dan Walsh • Edited

Correct—I meant that more broadly regarding returning null, not pointing to any specific examples.