我试图在我的功能组件中使用React useState钩子,但是我得到了这个错误:./src/Person/Person.js
Line 5:43: React Hook "useState" is called in function "person" which is neithera React function component or a custom React
我想知道react typescript是否很好,所以我尝试了一下。我遇到了我从未遇到过的问题。You might have mismatching versions of React and the renderer (such as React DOM)See https://reactjs.org/link/invalid-hook-call