How to run a function and change the content every 5 seconds on Reactjs

后端 未结 0 1320
面向向阳花
面向向阳花 2021-01-26 10:54

Hello i am wondering how can u guys run a function on every 5 seconds on React js

Here\'s the code:

function Home() {

const [quotes,setQuotes] = useState(         


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