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

227
Views
React component not rendering and greyed out in vscode

component not loading properly .Its also greyed out. The app is simple with just a single component with just a div in it.However I cant seem to import it.Never had this problem before.Maybe I am missing something idk.I am struggling with this for the last 5 hours .maybe problem with my system.plz help .

Code for counterr.js

import React from 'react'

function counterr () {
    return (
        <div>
            hello from counter
        </div>
    );
}

export default counterr;

code for app.js

import react from 'react';
import './App.css';
import counterr from './components/counterr'

function App() {
  return (
    <div>
    1234
     <counterr/>
    5678
    </div>
  )
}

export default App;

components

counterr component

counterr component

app.js

app.js

Rendering the app doesnt load counterr component

enter image description here

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

React (functional or class) components MUST start with a capital letter

about 4 years ago · Juan Pablo Isaza Report

0

Your function component needs to be capitalized.

import React from "react";

function Counterr() {
  return <div>hello from counter</div>;
}

export default Counterr;

And the App.js:

import Counterr from "./components/counterr";

export default function App() {
  return (
    <div>
      1234
      <Counterr />
      5678
    </div>
  );
}
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!