Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

439
Vistas
'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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda