Skip to content

Instantly share code, notes, and snippets.

View andersekdahl's full-sized avatar

Anders Ekdahl andersekdahl

View GitHub Profile
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 {