title: How get http params with in react?
body: <p>in this issue, if a user decides to reset the password a receive a param 
  after clicking the HTTP redirects with a token like a screen below</p>
  
  <p><a href="https://i.stack.imgur.com/Qouuy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qouuy.png" alt="url"></a></p>
  
  <p>so what's the approach to get this param?</p>
  
  <p>because I've tried to fetch and set the params but fetch just set the after receive or post.
  with axios the same, you need to already have anything stored to pass to the URL.</p>
  
  <p>here is the exemple:</p>
  
  <pre><code>fetchParams() {
  
          return fetch('/password/reset/(:token_params -- how get and store this params?)' , {
              method: "GET",
              headers: {
                  Accept: "application/json",
                  "Content-Type": "application/json",
  
              }
          }).then(res =&gt; res.json()).then(res =&gt; {
      let token = res.token_params;
  
      console.log("token: ", token);
  
  })
              .catch(error =&gt; {
                  console.error(error);
              });
      }
  
  
  
  fetchParams() {
  
  
  axios.get('/password/reset/:params', {
  
    })
    .then(response =&gt; {
      console.log(response);
  
    })
    .catch(error =&gt; {
      console.log(error);
    });
  
  
  
  
  }
  </code></pre>
  
  <p>so please someone can enlighten me how to get the params of a request in react before <strong>.then?</strong></p>