Skip to content

Commit

Permalink
Deploy Todo_app
Browse files Browse the repository at this point in the history
  • Loading branch information
pravocodes committed Jan 29, 2024
1 parent 50871c8 commit 23e685e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from 'react';
import { useState } from 'react'
import {
createBrowserRouter,
createRoutesFromElements,
Expand Down Expand Up @@ -32,7 +32,7 @@ function App() {

const router = createBrowserRouter(
createRoutesFromElements(
<Route path="/" element={<Layout/>}>
<Route path="/Todo-App" element={<Layout/>}>
<Route index element={<Home todos={todos} setTodos={setTodos} />} />
<Route path="about" element={<About/>} />
<Route path="contactus" element={<Contact/>} />
Expand All @@ -42,10 +42,11 @@ function App() {
);

return (
<div>
<>

<RouterProvider router={router} />
</div>
);
</>
)
}

export default App;
export default App
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: "/",
base: "/Todo-App",
});

0 comments on commit 23e685e

Please sign in to comment.