以往,只要需要用到State 就必須寫成Class Component 來掌管State,useState 則提供我們寫Stateful Function Component 的機會。
確定! 回上一頁