More on that point. The reason you cannot use if/else within JSX is because the statement needs to evaluate to an expression. If you really need to use if/else logic embedded, a ternary operator would work just fine.
return ( <nav> <Home /> { loggedIn ? <LogoutButton /> : <LoginButton /> } </nav> );