I'm having trouble dealing with facebook's ReactJS.
(我在处理Facebook的ReactJS时遇到问题。)
Whenever I do ajax and want to display an html data, ReactJS displays it as text.(每当我执行ajax并想要显示html数据时,ReactJS会将其显示为文本。)
(See figure below)((见下图))
The data is displayed through the success callback function of the jquery Ajax.
(通过jquery Ajax的成功回调函数显示数据。)
$.ajax({
url: url here,
dataType: "json",
success: function(data) {
this.setState({
action: data.action
})
}.bind(this)
});
Is there any easy way to convert this into html?
(有没有简单的方法可以将其转换为html?)
How should I do it using ReactJS?(我应该如何使用ReactJS?)
ask by Peter Wateber translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…