與class component 的 setState 方法不同, useState 不會自動合併更新object。 ... useRef 回傳一個mutable 的ref object, .current 屬性被初始為傳入的參數( ...
確定! 回上一頁