关于React 模块的问题。

index.js

https://img.mukewang.com/5bdc07f60001c3f102650174.jpg

正确的 app.js

https://img3.mukewang.com/5bdc08020001161404940357.jpg

错误的test.js

https://img1.mukewang.com/5bdc080e00019d5904960359.jpg

都引入index.js test的 不能渲染 提示 warning 'test' is defined but never used no-unused-vars

help


牧羊人nacy
浏览 602回答 1
1回答

尚方宝剑之说

eslint 的警告而已,index.js 引入了 test 但没被使用。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript