React | Conditional Rendering | Question 3

Last Updated :
Discuss
Comments

Which of the following statements about ternary operators is true in React?

Ternary operators can only be used inside return.

Ternary operators can be used for conditional rendering in JSX.

Ternary operators are not allowed for conditional rendering in React.

Ternary operators always require else clause.

Share your thoughts in the comments