Then, we are using useEffect and listening the the scroll event with addEventListener and updating the scrollPosition state every time the user scrolls.
確定! 回上一頁