Skip to content

Commit

Permalink
Merge pull request #4 from Kartikey2011yadav/main
Browse files Browse the repository at this point in the history
Testing routes
  • Loading branch information
Kartikey2011yadav authored Sep 22, 2024
2 parents 8590776 + c02bb84 commit 01f24d4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import Home from "./Home/Home";
import Test from "./Test/test.jsx";
import './index.css'
import { useEffect } from 'react';
import { initializeTheme } from './utils/theme.js';
Expand All @@ -14,6 +15,7 @@ const App = () => {
<Routes>
{/* Define your routes */}
<Route path="/" element={<Home />} />
<Route path="/test" element={<Test />} />
</Routes>
</Router>
);
Expand Down
11 changes: 11 additions & 0 deletions src/Test/test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@


const Test = () => {
return (
<div>
test routing success;
</div>
);
};

export default Test;
7 changes: 1 addition & 6 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"routes": [
{
"src": "/[^.]+",
"dest": "/"
}
]
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
}

0 comments on commit 01f24d4

Please sign in to comment.