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

435
Views
'React' must be in scope when using JSX react/react-in-jsx-scope

I am new in MERN Stack. I am following my prof's session videos in this project but suddenly I come across this error while she doesn't have any issues on her side. I also tried to use the methods I found as I was searching but it still won't work. This is my very first time in asking here, I don't know if any of you will reach me out soon but I'm just hoping. Anyway, here's my snippet of codes.

This is the product.js

ProductScreen

App.js

HomeScreen

P.S. I already did two says that suggested here also in stackoverflow. The first one is to capitalize the React when you import it like this

import React from 'react';

The other one is to modify the rules in .eslintrc.json

    "react/jsx-uses-react": "off",
    "react/react-in-jsx-scope": "off"
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

have you tried to add import React from 'react' on top of ALL your components (ProductScreen, App, Homescreen, and every other component) ?

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!