React useEffect Invalid hook call. Hooks can only be called inside of the body of a function component

后端 未结 0 388
北荒
北荒 2020-11-30 11:25

I always get this problem when using useEffect but I see others do it just fine. Here is my Code. Component 1 (Parent):

 const UsePrevious = (value)=> {
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题