Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

123
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda