1. React Hook "useEffect" is called in function "main" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
遇到这种报错,
首先看一下自己的函数组件名称是不是首字母大写,不是大写会报这种错误,
其次这种错误就是看一下自己函数组件中的函数名称是不是useXXX开头的,也是报这种错误,使用hooks的时候最好不要命名和函数命名是use开头的
。。。持续更新中