title: withRouter vs react-router-dom hooks (useHistory, useLocation, useMatch)
body: <p>Sometimes I use withRouter to wrap my component and use <code>history</code>, <code>location</code> from <code>props</code>, sometimes I use <code>useHistory()</code>, <code>useLocation()</code>.
  I don't know the advantages or disadvantages of these two ways to use.</p>