useRef can be used to store and arbitrary value. E.g. you might want to use useRef to keep a mutable value for the entire life of the component.
確定! 回上一頁