• Tutorials
  • Courses
  • Tracks
Switch to Dark Mode

React | Conditional Rendering | Question 5

Last Updated : Aug 6, 2025
Discuss
Comments

Why might {isOpen && <Modal />} be preferred over {isOpen ? <Modal /> : null}?

A

It’s more explicit

B

It produces smaller bundle size

C

It avoids null checks in React’s reconciliation

D

Both are functionally identical, but && is cleaner

Share your thoughts in the comments