React - test image and conditional render element from Promise

前端 未结 0 1882
小蘑菇
小蘑菇 2021-01-01 12:55

In my code I would like to check if image exist on server and then display image if true otherwise display span element. I wrote following code but it didn\'t return any val

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