in my react app i have a common header bar that contains the user's profile avatar and a dropdown for info. I want to render the header always but the profile avatar and dropdown only if the user is logged in. Can i wrap anything in
to hide it if not logged in or will it redirect me away?