我在我的react应用程序中使用了第三方库'FoamTree‘来实现树的可视化。当我在我的组件中导入它的文件'carrotsearch.foamtree.js‘时,它在多行中给出了这个错误: Expected an assignment or function call and insteadsaw an expression no-unused-expressions 它在普通的Javascript中运行良好。它只在react中
我使用Axios函数返回对响应数据的API调用,如下所示。then(response => { this.setState({stateData:response.data});} 但是我在编译的时候得到了下面的错误Expected an assignment or function call and instead saw an expression no-unused-expressions。
I want to update my state after a button clicked, below is a piece of update function handler codes where i tried to find the error and i couldn't, someone help me seems that line no.55 has an error. const addUpdateStudentHandler =(mystudent) =>{
axios.put(`http://localhost:3006/students