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

176
Visualizações
Image file suggestions not showing up in react application

I have been trying to import image in my react app using the import keyword from a local directory but I can't see any image files in the code suggestion. I have tried to type the entire path without using the suggestions but the image still won't load on my web application. Below are the links to the files.

screenshot of import statement

screenshot of image location in the src folder

about 4 years ago · Santiago Gelvez
2 Respostas
Responde à pergunta

0

Simple solution is put images into the public folder and use it like this:

<img src="/img1.jpg" />

in your situation, how do you created your react project? with create-react-app? if yes https://create-react-app.dev/docs/adding-images-fonts-and-files/ there is simple solution for this... let's give a import image from same path with extension

about 4 years ago · Santiago Gelvez Relatório

0

Hi Just Moeed first import the image you in the screenshot in post import Image in this Image in src the name of import

about 4 years ago · Santiago Gelvez 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