How to render a string with JSX in React
问题 I need to render an HTML (JSX) string in a React class. I don't know if this is possible or not. dangerouslySetInnerHTML is not valid for me because I have different react components inside this file. It's not plain HTML. I have an example with the expected result: https://jsfiddle.net/86rg50re/1/ var MyComponent = React.createClass({ propTypes: { owner: React.PropTypes.string }, render: function() { return <div>Congrats {this.props.owner}! you have rendered MyComponent ({this.props.children}