diff --git a/package.json b/package.json index 99d504e..8e330c8 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "react-notes", "version": "0.1.0", "private": true, - "homepage": "https://lemeow125.github.io/react-notes", + "homepage": "https://lemeow125.github.io/react-notes/#", "dependencies": { "@emotion/react": "^11.10.6", "@emotion/styled": "^11.10.6", diff --git a/src/index.tsx b/src/index.tsx index 04f137a..8a1d3c6 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2,7 +2,11 @@ import React from "react"; import ReactDOM from "react-dom/client"; import "./index.css"; import reportWebVitals from "./reportWebVitals"; -import { createBrowserRouter, RouterProvider } from "react-router-dom"; +import { + createBrowserRouter, + createHashRouter, + RouterProvider, +} from "react-router-dom"; import Home from "./Routes/Home/Home"; import NewNote from "./Routes/NewNote/NewNote"; @@ -19,7 +23,7 @@ import Store from "./Features/Redux/Store/Store"; const queryClient = new QueryClient(); -const router = createBrowserRouter([ +const router = createHashRouter([ { path: "/", element: ,