title: React change login link to logout after login
body: <p>I am creating a  website in react where my header and login form are different component .I want after login my login link in header change to logout.</p>