Coding task · Next.js course · Module 1: Next.js Configuration
Advanced: Practice: Conditional Rendering
Create a component with conditional rendering
Task
Create a LoginStatus component that takes an isLoggedIn prop (true or false) and displays "Logged in" when isLoggedIn is true, or "Not logged in" when it is false. Use conditional rendering (the ? : operator or if).