报错:
src\pages\preventRender.jsx
Line 20:25: Expected an assignment or function call and instead saw an expression no-unused-expressions
Search for the keywords to learn more about each error.
webpack compiled with 1 error and 1 warning
![](https://i-blog.csdnimg.cn/blog_migrate/1332ef403b55a82acc0d6f3cf751a73e.png)
![](https://i-blog.csdnimg.cn/blog_migrate/c27e069c1ebed6c80b28603eb0299595.png)
原因是截图代码中语法写错了,这里应该是一个赋值或函数调用
正确的写法应该是如下:
![](https://i-blog.csdnimg.cn/blog_migrate/9b22a88482f518f79cd423bbc222f3ab.png)