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

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

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 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