Add element to an array and remove the element from front, one at a time, every 2 seconds until the array is empty?

前端 未结 0 385
[愿得一人]
[愿得一人] 2020-12-11 02:43

So, I\'m using react and have a button which adds an element to an array using useState when I press the button. Now, once I\'ve added the 1st element, I want to remove the

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