score:3

Accepted answer
{(window.location.pathname!=='/new_page')&&<div className="sidebar">
    <SidebarMenu />
  </div>}

Related Query

More Query from same tag