React component for a div with editable contents
npm install react-contenteditable --savevarContentEditable=require("react-contenteditable");varMyComponent=React.createClass({getInitialState: function(){return{html: "<b>Hello <i>World</i></b>"};},handleChange: function(evt){this.setState({html: evt.target.value});},render: function(){return<ContentEditablehtml={this.state.html}// innerHTML of the editable divdisabled={false}// use true to disable editiononChange={this.handleChange}// handle innerHTML change/>}});