Should you pass setter functions into the dependency array of a React hook?

前端 未结 0 1278
你的背包
你的背包 2021-01-28 23:57

Recently I saw a few examples of passing setter functions into hook dependency arrays in my coworkers\' React code, and it doesn\'t look right to me. For example:



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