title: Why using parameters of React Router instead of passing them through?
body: <p>What is the purpose of passing data through parameters on the Route using react-router?</p>
  <p>let's take an example of a chat in which on the left you have a list of chats and on the right you show the chat that the user has selected. Many website (Instagram for example) would pass the id of the chat as a parameter of the url.
  My question is: as you probably have the id of the chat you want to get the data from, what is the purpose of passing it as a parameter to the URL instead of just call a function that fetches the data of that chat directly?</p>