How to load virtual dom once the data from api are loaded React

后端 未结 0 420
被撕碎了的回忆
被撕碎了的回忆 2020-11-30 20:02

I think that my dom loads faster than data do. I use useEffect to grab my data and store in localStorage

useEffect(() => {
axios.get(\'example.com/users\')         


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