Skip to content

Commit

Permalink
Configured route for /wall
Browse files Browse the repository at this point in the history
  • Loading branch information
akuldevali committed Oct 31, 2024
1 parent c4bc3d8 commit 66ec6be
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 5 deletions.
42 changes: 42 additions & 0 deletions react-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"axios": "^1.7.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.27.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
Expand Down
11 changes: 6 additions & 5 deletions react-frontend/src/App.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import logo from './logo.svg';
import './App.css';
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
import Wall from './components/Wall';
import React, {useState, useEffect} from 'react';


function App() {
return (
<div className="App">
<Wall />
</div>
<Router>
<Routes>
<Route path="/wall" element={<Wall />} />
</Routes>
</Router>
);
}

Expand Down

0 comments on commit 66ec6be

Please sign in to comment.