Skip to content

Commit

Permalink
replaced: hash router
Browse files Browse the repository at this point in the history
  • Loading branch information
debojitsaha committed Jan 7, 2024
1 parent 6856a1a commit bbf33c6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import { createRoot } from "react-dom/client";
import App from "./App.jsx";
import "./index.css";
import { RouterProvider, createBrowserRouter } from "react-router-dom";
import { RouterProvider, createHashRouter } from "react-router-dom";
import NotFound404 from "utils/NotFound404/NotFound404.jsx";
import Home from "pages/Home/Home.jsx";
import Team from "pages/Team/Team.jsx";
Expand All @@ -28,13 +28,13 @@ const routes = [
},
],
},
// {
// path: "*",
// element: <NotFound404 />,
// },
{
path: "*",
element: <NotFound404 />,
},
];

const router = createBrowserRouter(routes);
const router = createHashRouter(routes);

createRoot(document.getElementById("root")).render(
<React.StrictMode>
Expand Down

0 comments on commit bbf33c6

Please sign in to comment.