I want to be able to pass text with HTML tags, like so:
not working.\" />
Bu
You could also use a function on the component to pass along jsx to through props. like:
var MyComponent = React.createClass({
render: function() {
return (
);
},
body() {
return(
This is now working.
);
}
});
var OtherComponent = React.createClass({
propTypes: {
body: React.PropTypes.func
},
render: function() {
return (
{this.props.body()}
);
},
});