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

214
Visualizações
"Component is defined but never used"

I am working on a to-do list app using React.js. I have 3 components so far: Todo.js, FilterButton.js, and Form.js. I have imported all three in the App.js file, however, the Form.js import is kind of faded and gives a warning of 'Form' is defined but never used'. I've exported it in the component and the path is correct as well. Any ideas on how to fix the issue?

enter image description here

about 4 years ago · Juan Pablo Isaza
3 Respostas
Responde à pergunta

0

Don't worry it is not an error it is just telling you that you have imported the Form Component but you are not using it. It will go away once you use the Form Component.

about 4 years ago · Juan Pablo Isaza Relatório

0

Remove (import Form from "/components/Form")from imports of app.js file. Its not an issue. In React you should not import the unused imports.

about 4 years ago · Juan Pablo Isaza Relatório

0

As you are not using the Form component, React tells you that this is an unused import. But as soon as you will start to use this import, this warning will disappear.

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