title: What is the difference between useHistory() and props.history in React Route
body: <p>In my react function, I could write:</p>
  
  <p><code>const history = props.history;</code>
  or
  <code>const history = useHistory();</code></p>
  
  <p>Then I can use <code>history.push()</code> or <code>history.goBack()</code> in the same way. </p>
  
  <p>So I wonder if they are different or not?</p>