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

121
Views
Issue after refresh page React JS

I'm working with react router dom, when i open my application everythink working fine but when i do refresh to the page there is some issue heppened like in the screenshot. this happened just in the server but in the local everythink working fine. Any idea please for this problem!

enter image description here

App.js

import React, { Component } from 'react'
import { HashRouter, Route, Switch, Redirect, BrowserRouter } from 'react-router-dom'


const DefaultLayout = React.lazy(() => import('./layout/DefaultLayout'))
class App extends Component {

  render() {
    return (
      <BrowserRouter>
        <React.Suspense fallback={loading}>
          <Switch>
            <Route exact path="/login" name="Login Page" render={(props) => <Identify {...props} />} />

          </Switch>
        </React.Suspense>
      </BrowserRouter>
    )
  }
}
 
export default App

routes.js

import React from 'react'
import { Router, Route, browserHistory, IndexRoute } from 'react-router'

const routes = [
  // { path: '/login', exact: true, name: 'Home' },
  { path: '/dashboard', name: 'Dashboard', component: Dashboard }

]
export default routes
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!