为啥useState 执行后会返回一个array, 而useRef 是object 呢?为啥不把useState 设计为返回object 呢?我们在自定义hooks 时应该返回什么类型呢?
確定! 回上一頁