How can you conditionally render a component in React?
Using if directly in return statement
if
Using && or ternary operator inside JSX
&&
Using switch inside return
switch
Using console.log()
console.log()
This question is part of this quiz :