How can i access variable inside useEffect() hook

前端 未结 0 1601
既然无缘
既然无缘 2020-12-29 03:44

I am new to react and have initialized a variable named socket inside the use effect hook. I am trying to access it in my return statement. However i cant seem to access it

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