Recently I was facing an issue coding React app on Visual Studio code. Because of this issue, whenever I wrote JSX inside the render function of the React Component and saved it, it would go messed up (I mean indentation would get messy). See the pic:
此错误还显示如下错误:
1.非封闭正则表达式
怎么解决这个问题呢?
如果您正在使用jshint
插件,删除并安装ESLint
plugin.
它是一个很好的替代品jshint
在reactJS工作中。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)