Switch to Dark Mode

React | Conditional Rendering | Question 10

Last Updated : Jan 27, 2025
Discuss
Comments

Which React syntax is used to conditionally render elements based on multiple conditions?

{
    condition1 ? <First /> : condition2 ? <Second /> : <Third />
}


A

Switch case rendering

B

Ternary operator

C

&& operator

D

if statement

Share your thoughts in the comments