📌  相关文章
📜  React Hook "React.useState" 在函数 "placeItem" 中被调用,该函数既不是 React 函数组件也不是自定义 React Hook 函数 react-hooks rules-of-hooks - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:31.692000             🧑  作者: Mango

代码示例1
React Hook "React.useState" is called in function "placeItem" which is neither a React function component or a custom React Hook function  react-hooks/rules-of-hooks

answer :- function name must be start with capital letter