Question: In this component, how do you display whether the user was logged in or not?
- `The user is loggedIn ? logged in : not logged in.`
- Write a function to check the login status.
- `The user is {isLoggedIn = "no"}.`
- `The user is {isLoggedIn ? "logged in." : "not logged in"}.`
Answer: The correct answer of the above question is Option D:`The user is {isLoggedIn ? "logged in." : "not logged in"}.`