r.guard

<r.guardwhen={!user}then={<Login />}><Dashboard user={user} /></r.guard>

Sign in to continue.

result