useRef () only returns one item. It returns an Object called current . When we initialize useRef we set the initial value: useRef(0) .
確定! 回上一頁