It’s possible to use React Router, but you must ensure that you don’t use <BrowserRouter>
and use one of these options :
<MemoryRouter>
Documentation<HashRouter>
Documentation/* Example */
<MemoryRouter> // or: <HashRouter>
<div>
<ul>
<li>
<Link to="/">Home</Link>
</li>
<li>
<Link to="/about">About</Link>
</li>
</ul>
<hr/>
<Switch>
<Route exact path="/">
<Home />
</Route>
<Route path="/about">
<About />
</Route>
</Switch>
</div>
</MemoryRouter>