Function return type based on optional params

后端 未结 0 755
无人共我
无人共我 2020-12-04 01:57

I\'m trying to access an array of data stored in React Context using a custom hook.

  • If I pass in no parameters, I want the whole array of data
  • If I pas
相关标签:
回答
  • 消灭零回复
提交回复
热议问题