React | Conditional Rendering | Question 2

Last Updated :
Discuss
Comments

Why is null often used in conditional rendering?

It displays an empty <div>

It triggers an error boundary

It prevents rendering anything

It replaces the component with false

Share your thoughts in the comments