我在这个项目中使用了create-react-app,并且我已经在netlify上部署了生产版本。问题是它一直在从devtools下载这个脚本,几乎只有1MB的一半。我尝试安装npm包disable-react-devtools并将其添加到index.js中,但这显然没有任何作用,文件仍在下载中 ...import App from '.
Compiled with problems:X
Line 5:21: ReactHook "useRef" is calledin function "signin" that is neither a React function component nor a custom ReactHook function.React component names must
import {useState} from 'react'
const [activeNav, setActiveNav] = useState('#')我搞错了,我不知道为什么
ReactHook "useState" is called in function "nav" that is neither a React function componentnor a custom <e