React : How to execute a method every 10s?

后端 未结 0 1443
情歌与酒
情歌与酒 2020-12-06 10:54

I woudlike to run my method "getNumber" every 10s for example How can I do this ?

class App extends Component {
    constructor(){
        super();
         


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