title: How to get wrapped component instance with recompose?
body: <p>I'm using <a href="https://github.com/acdlite/recompose/blob/master/docs/API.md#lifecycle" rel="nofollow noreferrer"><code>lifecycle</code></a> to create a Higher-Ordered Component. I need access to the wrapped component instance. How can I get it?</p>
  
  <p>e.g.</p>
  
  <pre><code>export default function ajaxLoader(options) {
      return lifecycle({
          componentWillMount() {
              // how to get *wrapped* component instance here?
              // `this` refers to an instance of the lifecycle HOC, not the wrapped component
              // i.e., I want the instance of `SomeComponent`
          }
      }) // this returns a function that accepts a component *class*
  }
  </code></pre>
  
  <p>And the usage, if you want to see that too:</p>
  
  <pre><code>class SomeComponent extends React.PureComponent {
  
      render() {
          return &lt;span/&gt;;
      }
  }
  
  const WrappedComponent = ajaxLoader({
      // options
  })(SomeComponent);
  </code></pre>
  
  <p>I <em>think</em> I could have gotten a reference to the wrapped component if I overrode the <code>render()</code> method in my HOC, and rendered the wrapped component with <code>ref=...</code>, but <code>recompose</code> specifically won't let me implement the <code>render</code> method myself.</p>
  
  <blockquote>
    <p>It supports the entire Component API, except the render() method, which is implemented by default (and <strong>overridden if specified; an error will be logged</strong> to the console). </p>
  </blockquote>