NavLink: when selecting an item in the menu bar, the corresponding menu item should appear as selected
use Navigate in the form Cancel button
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().
Navigate
in the form Cancel buttonAnything else?
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().