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
class Editable extends React.Component { | |
componentDidMount() { | |
const node = ReactDOM.findDOMNode(this); | |
// Do stuff with the DOM node to make both React and | |
// the CMS we use happy | |
} | |
render() { | |
if (this.props.Component) { | |
return <this.props.Component {...this.props} />; | |
} else { |