Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

173
Views
Navigation Issue from Dashboard Page Log-Out to LogIn Page in React JS

I've created an Web App Using the ReactJS, where I've LogIn Page -> Main Dashboard (Sidebar & Top Bar (Common to all Pages)

In Top Nav Bar I've LogOut Option.

Issue: When I click on Logout Button from the Main dashboard I'm able to navigate to Login Page (Authenticate Page) but the Sidebar and Top bar are still there. How can I Hide that When I Click on LogOut Button and Show only LogIn Page (Authentication page)

Because of some Security Reasons I can't share the Complete Code. So I'm Sharing the App.js file.

  class App extends React.Component {
  render() {
    return (
      <div>
        {/* Routing to navigate to proper screen/page`` */}
        <Router>
          <NavigationPage />
          <Switch>
            <Route path="/" exact component={Home} />
            <Route path="/opt1" component={opt1} />
            <Route path="/opt2" component={opt2} />
            <Route path="/opt3" component={opt3} />
            <Route path="/opt4" component={opt4} />
            <Route path="/opt5" component={opt5} />
            <Route path="/opt6" component={opt6} />
            <Route path="/opt7" component={opt7} />
            <Route path="/authenticate" component={Authenticate} />
          </Switch>
        </Router>
      </div>
    );
  }
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!