Skip to content

Instantly share code, notes, and snippets.

@goatslacker
Created January 15, 2016 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goatslacker/9569fe0405522b1861dc to your computer and use it in GitHub Desktop.
Save goatslacker/9569fe0405522b1861dc to your computer and use it in GitHub Desktop.
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