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

125
Vistas
React App is not working due to one component

I have created a react app using the command create-react-app my-app and when I build and start its working fine using npm start

Now I added one .JS file inside the SRC folder and used the tag inside App.Js Here is the below code for that component

import React from 'react'

        class Footer extends React.Component {
            render() {
                return (
                    <div>
                        <h1>It's a bit chilly out there</h1>
                    </div>
                );
            }
        }

        export default Footer;

After that I have added the Component into App.JS

class App extends React.Component{

  render() {
      return (
        <>
         <div>
              Test Component created using Class
              <Footer/>
          </div>
        
        </>
         
      );
  }
}
export default App;

After successfully compilation when I ran my app, I got empty browser and also get error in Console.

Console Error message

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

From the screenshots, i have understood to change the case used to name the react components.

  1. Is your footer component named as Footer.js
  2. Is your App component named as App.js

Comment if the above changes worked.

about 4 years ago · Juan Pablo Isaza Denunciar
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