Following the syntax from the quickstart example you would need to change you code a little. You need to pass the element into the <Route/>
-components as follows:
<Route path="/" element={<App />}>
CLICK HERE to find out more related problems solutions.