useLocation may be used only in the context of a <Router> component error
Hi, I migrated my app to 4.x.x version. But I can't run it. There is always this error shows up.
My app.tsx file is in attachment.
My app.tsx file is in attachment.

App.tsx12.3KB
