React render twice and show error message and data

前端 未结 0 1805
滥情空心
滥情空心 2021-01-04 19:15

I have a component and I want to show a message when I have an error (no data). I use a hook useEffect in order not to render anything before I don\'t have data. Inside the

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