title: How to get parameter value from react-router-dom v6 in class
body: <p>I'm using react-router-dom v6 and don't know how to get parameter value</p>
  
  <p>ex: <code>http://localhost:3000/user/:id</code></p>
  
  <p>i want to get <code>:id</code></p>
  
  <p>Someone use hook <code>useParams</code> to get but i'm using class so i can't use hook.</p>