Wouldn't you still need to do a conditional render to show the Auth vs NotAuth components as shown in your third snippet?
Or would you plan on returning both and letting Context worry about which to show
My solution is
<Authenticated>You're signed in</Authenticated> <NotAuthenticated> Oops, go sign in </NotAuthenticated>
The reason I like it so much is that you can use one without the other, like the example in the logout button.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Wouldn't you still need to do a conditional render to show the Auth vs NotAuth components as shown in your third snippet?
Or would you plan on returning both and letting Context worry about which to show
My solution is
The reason I like it so much is that you can use one without the other, like the example in the logout button.