What does the following code do in React?
{isLoggedIn && <Dashboard />}
It will always render <Dashboard />
It will render <Dashboard /> only if isLoggedIn is true
It will never render <Dashboard />
It will display an error
This question is part of this quiz :
Conditional Rendering In React