Switched to React MemoryRouter
This commit is contained in:
parent
053c0b1148
commit
c3bd12a761
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { BrowserRouter } from "react-router-dom";
|
import { MemoryRouter } from "react-router-dom";
|
||||||
import Routing from "./Routing.jsx";
|
import Routing from "./Routing.jsx";
|
||||||
import Navbar from "./Navbar.jsx";
|
import Navbar from "./Navbar.jsx";
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
|
@ -9,9 +9,9 @@ export default function Nile() {
|
||||||
loadingElements.remove();
|
loadingElements.remove();
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<BrowserRouter>
|
<MemoryRouter>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<Routing />
|
<Routing />
|
||||||
</BrowserRouter>
|
</MemoryRouter>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue