← React Intermediate Questions - Set 7 Q63

How do you conditionally render elements in React?

React Intermediate Questions - Set 7

Example

{items.length === 0 ? <Empty /> : <List items={items} />}

What to notice

← Back to the question list