useMemo with an array dependency?

前端 未结 0 534
心在旅途
心在旅途 2020-12-03 19:32

Can you have an array as a dependancy for the useMemo hook?

I know this would be fine:

const dep1 : string = \'1\'

const thing = useMemo(         


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