React Router Without Changing URL
<p>I need to have routing that works <strong>without changing the URL</strong>. </p>

<p>Before implementing this on my own, I tried to look for something by react router. I saw that there is such a thing called <strong><code>createMemoryHistory</code></strong>:</p>

<blockquote>
  <p>createMemoryHistory([options])</p>
  
  <p>createMemoryHistory creates an in-memory history object that does not
  interact with the browser URL. This is useful for when you need to
  customize the history object used for server-side rendering, for
  automated testing, or for when you do not want to manipulate the
  browser URL, such as when your application is embedded in an iframe.</p>
</blockquote>

<p>But beyond this paragraph there aren't any usage examples and I can't find a usage for this anywhere, i.e: how to use <code>Link</code> component to navigate without a pathname, by which parameter do I route if not pathname, etc.</p>

<p>Is this right for my needs, or do I have to implement a router on my own?</p>