firasrg / spring-petclinic-reactjs

Modern ReactJS client for Spring Petclinic sample application
0 stars 0 forks source link

Improve routing #6

Closed michaelisvy closed 1 year ago

michaelisvy commented 1 year ago

Anything else?

<div>
      <Menu name={location.pathname} />
      <Router>

this is the legacy approach to declare Router and Routes, while I admit that it could work, but based on React Router modern guide, it seems it's no more the recommended way.

In order to keep the new app well updated, and to be in sync with the docs, consider using createRoutesFromElements().