Created
January 15, 2016 06:32
-
-
Save goatslacker/9569fe0405522b1861dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react') | |
var foo = React.createClass({ | |
render: function () { | |
return React.createElement('select', null, [ | |
React.createElement('option', { | |
key: 1, | |
value: 1, | |
dangerouslySetInnerHTML: { __html: '<strong>yes</strong>' }, | |
}), | |
React.createElement('option', { | |
key: 2, | |
value: 2, | |
dangerouslySetInnerHTML: { __html: '<strong>no</strong>' }, | |
}), | |
]) | |
} | |
}) | |
React.render(React.createElement(foo), document.getElementById('app')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment