Which of the following is the correct usage of && operator for inline conditional rendering?
{condition && <Component />}
{condition || <Component />}
{condition ? <Component />}
{<Component /> && condition}
This question is part of this quiz :
Conditional Rendering In React