Ref is just a { current: initialValue } object. ... useRef() is basically useState({current: initialValue })[0] ... Index zero is the current value :).
確定! 回上一頁