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

177
Vistas
Getting a blank page after updating my react to v18

After I imports from reacts and rendering to app.js, I got a blank page though I just upgraded to react18. here is my code below.

import React from 'react';
import { createRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import App from './App';
const container = document.getElementById('root');
const root = createRoot(container);
root.render( 
  <BrowserRouter>
    <App />
  </BrowserRouter>
);

and I got this error below in my console

the above error occurred in the component: at meta

at HomePage
at Routes (http://localhost:3000/static/js/bundle.js:40123:5)
at App
at Router (http://localhost:3000/static/js/bundle.js:40056:15)
at BrowserRouter (http://localhost:3000/static/js/bundle.js:38865:5)

My App Component

import { Routes, Route } from 'react-router-dom';

import HomePage from './pages/Home';

function App() {
  return (
    <Routes>
     <Route path='/' element={<HomePage />} />
    </Routes>
  );
}

export default App;
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