We call the useRef hook and assign the returned ref to elementRef . Then we set elementRef as the value of the ref prop of the div. Finally, ...
確定! 回上一頁