How can you conditionally render a component based on a prop value?
By using props directly in JSX
By using && inside the JSX expression
By passing the prop to a function component
By modifying the component’s state
This question is part of this quiz :
Conditional Rendering In React