Changing state with timeout in forEach loop

后端 未结 0 1015
小鲜肉
小鲜肉 2021-01-14 00:41

I have a setState hook inside forEach loop that should update state after each 1000ms

    useEffect(() => {
            startTypingAnimation("From pas         


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