Javascript 属性的值是来自API(REACTJS)的HTML字符串
如何在UI中显示此html!请帮忙Javascript 属性的值是来自API(REACTJS)的HTML字符串,javascript,html,reactjs,api,dom,Javascript,Html,Reactjs,Api,Dom,如何在UI中显示此html!请帮忙 <div class="photo"><img width="40px" height="40px" src="http://localhost/castclass/public/uploads/user_35579/user_35571/"></div> <div class="action-area"> <
<div class="photo"><img width="40px" height="40px" src="http://localhost/castclass/public/uploads/user_35579/user_35571/"></div>
<div class="action-area">
<span class="name">Something</span>
<span>Join Request for Something</span>
</div>
某物
加入请求某事
也许可以将此消息作为组件本身使用。它可以工作吗@fakiir@Fakhir阿尔斯兰欢迎来到SO。请考虑在你的答案中添加更多细节,比如为什么这样想,如何这样做等等。谢谢。