How to give a default value to a generic parameter?

前端 未结 0 1955
灰色年华
灰色年华 2020-12-10 00:16

I have the following function (React hook) :

export function useListVariables>(init: T) {
  return useState

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