I have an LW component which I want to show only to the logged-in users.
I can do it from out side the component by wrapping it within @auth()
and @endauth
directive.
How can I render or not, based on a condition within the component if that makes sense?
@auth()
@livewire('my-component')
@endauth