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

206
Views
"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 answers
Answer question

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 Report

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 Report

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