createRef and useRef can be used to store any value, not only DOM ... re-running the function on re-render won't re-create the ref value.
確定! 回上一頁