Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

122
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!