title: connect and withRouter issue
body: <p>I am using Redux and React for my project. I have some Routes in App.js. I also use the connect function in react-redux in my project. To prevent update blocking issue, I usually wrapped my component in this way</p>
  
  <pre><code>withRouter(connect(mapStateToProps, mapDispatchToProps)(App)),
  </code></pre>
  
  <p>However, If I changed order of withRouter and connect it doesn't work:</p>
  
  <pre><code>connect(mapStateToProps, mapDispatchToProps)(withRouter(App))
  </code></pre>
  
  <p>I have console.log the props in App.js. It already receives location and history props. I am figuring out the theory behind why the order does matter ?</p>