DEV Community

Discussion on: Why do library imports and props show errors in React? (Solved)

Collapse
 
praneshchow profile image
Pranesh Chowdhury

Ok Thanks, I will try it.

Collapse
 
jassi088 profile image
Jaspreet singh • Edited

look wherever you have defined rules , and add a new rule for no-unused-vars to false, thats also not a good approach btw, you just need to remove React import line from the component, if it addresses about that react should be in environment while working in jsx or react, just disbable the rule.