Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

180
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda