Dynamic delay in React Native setInterval

前端 未结 0 1047
北恋
北恋 2020-12-09 03:29

My code is:

const [c, setC] = useState(1);
  const [speed, setSpeed] = useState(1000);
  const intervalRef = useRef()

  useEffect(() => {
    intervalRef.         


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