Can React.useEffect handle an async EffectCallback return?

前端 未结 0 1431
栀梦
栀梦 2021-01-21 07:39

I have a component which much unsubscribe to something asynchronously. Is this possible with React.useEffect?

eg

useEffect(() => {
  doSomething();
  re         


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