Warunek logowania Jeśli w router DOM React JSX
let redirectToUrl;
if ( not logged in ) //check condition
{
redirectToUrl = <Redirect to={loginPage}/>;
}
Faithful Flatworm