How to use useState to declare an array of strings, and then update it when using Typescript?

后端 未结 0 1931
盖世英雄少女心
盖世英雄少女心 2020-12-06 05:13

I have the following

interface ISTx {
    tx: Array,
    setTx: any
}

const [tx, setTx]  = useState([]) //Argument of type \'never[         


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