check if a tag element is empty in react?

前端 未结 0 540
忘了有多久
忘了有多久 2020-12-24 14:35

I wonder if is possible to check if a tag element is empty, using React. The tricky part is that the element is inside of an innerHTML from an external source.

For ex

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