Question: In this component, how do you display whether the user was logged in or not?

  1. `The user is loggedIn ? logged in : not logged in.`
  2. Write a function to check the login status.
  3. `The user is {isLoggedIn = "no"}.`
  4. `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"}.`