Can a function invoked by a JS Timer call the setData() as returned by React Hooks useState()?

后端 未结 0 1262
谎友^
谎友^ 2021-02-08 11:12

The following is just to fetch the time and display it, and using a JS interval timer to invoke a function to set the state, so as to cause the first useEffect() ru

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