Reactjs: hide or show components based on api response

后端 未结 0 818
情歌与酒
情歌与酒 2021-01-06 14:51

so I have an API that returns true or false, based on if the store is open. I want to implement a logic inside a class component such that it will render different component

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