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

129
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
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