简体   繁体   中英

React js error WARNING in [eslint] src\App.js Line 2:8: 'person' is defined but never used

[.[I am facing this issue help me to solve this: it always gives me an error Line 2:8. 'person' is defined but never used no-unused-vars.][1]][1]

You can go to the editor settings and search eslint and disable the checkbox of Controls whether eslint is enableed or not. But that's not appritiated cause eslint gives you international code standard in some cases by applying eslint rule. If you want to know more please read eslint rules . 在此处输入图像描述

In line 2 at the position 8, in the file App.js you declared a variable with the name "person" that you are not using in your code. Its a hint not an error,, by eslint. Go to this position and delete the declaration.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM