state not updating on scrolling in React component?

后端 未结 0 1867
后悔当初
后悔当初 2021-02-06 13:25

I have a react component, HomeScreen.js:

import React, { useEffect,useState } from "react";

const HomeScreen = () => {
  const [scrolledY, setScroll         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题