React setState hook from scroll event listener. In your code I see several issues: 1) [] in useEffect means it will not see any changes of state, ...
確定! 回上一頁