133
rated 0 times
[
134]
[
1]
/ answers: 1 / hits: 63661
/ 9 Years ago, fri, april 17, 2015, 12:00:00
var Klass = React.createClass({
this.props.html_string = '<button>BUTTON_TEXT</button>';
render: function(){
return (
<div className=wrapper>
{this.props.html_string}
</div>
);
}
});
Currently {this.props.html_string}
gives me a text node. How can I make this a HTML DOM node?
More From » reactjs