我正在尝试部署一个react应用程序。代码/应用程序在我的本地端运行得很好。Either include it or remove the dependency array react-hooks/exhaustive-depsuseEffect(time - 1); } else if (timeRemaining === 0) {
// esl
我正在创建一个项目,在这个项目中,数据是从Firebase获取的,整个UI运行良好,但是出现了一个错误,即 Line 16:7: React Hook useEffect has a missing dependency: 'fetchDB'.Either include it or remove the dependency array react-hooks/exhaustive-deps
当我在另一个项目中使用相同的方法时,它运行得很好,但是我决定对我当前的项目使用相同的方法,然后我对下面给出的内容有了一个问题。Hooks can only be called inside of the body of a function component.You might have mismatching versions of React and the renderer (such as React DOM)
2.You might be