feat: frontend first routing implementation
This commit is contained in:
parent
948e036e8c
commit
e12812d202
4 changed files with 74 additions and 7 deletions
|
|
@ -1,8 +1,15 @@
|
|||
import React from "react";
|
||||
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
||||
import UserPage from "./components/UserPage/UserPage";
|
||||
|
||||
const App: React.FC = () => {
|
||||
return <UserPage />;
|
||||
return (
|
||||
<Router>
|
||||
<Routes>
|
||||
<Route path="/users/:id" element={<UserPage />} />
|
||||
</Routes>
|
||||
</Router>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
||||
export default App;
|
||||
Loading…
Add table
Add a link
Reference in a new issue