title: Unwrap a component in React
body: <p>This is so simple I hate to ask it, but after searching the react router docs and googling around I have found nothing. I have a component that is wrapped using withRouter when it is exported:</p>
  
  <pre><code>export default withRouter(MyComponent)
  </code></pre>
  
  <p>I want to test this component but I am getting the following when testing:</p>
  
  <pre><code>&lt;Login router={[undefined]} /&gt;
  </code></pre>
  
  <p>I usually just import my components to test them individually using enzyme's <code>shallow</code> method. Is there a way to unwrap this component so I can import it for testing?</p>