title: How to get the current url path using hook router in react?
body: <p>I'm new to react and react hooks. I'm using <em>hookrouter</em> package and I tried to googling about the question, but didn't find much about it. </p>
  
  <p><strong>What I want?</strong></p>
  
  <p>I'm trying to get the current url path. For e.g. for <code>https://example.com/users/temp</code>, I want to get <code>/users/temp</code>. </p>
  
  <p>Any help will be appreciated. Thanks in advance!</p>