import React from 'react';
import createElement from 'recompose/createElement';
import createHelper from 'recompose/createHelper';

const componentDidMount = callback => BaseComponent =>
  class extends React.Component {
    componentDidMount = () => callback(this)
    render = () => createElement(BaseComponent, this.props)
  };

export default createHelper(componentDidMount, 'componentDidMount');

@@ -1,12 +1,56 @@
+/* eslint react/require-render-return:0 */%0A%0A
 import React

disable react/require-render-return