Created
September 28, 2022 09:12
-
-
Save vaibhavgehani/3e80d5e5c5968cda0d925763517772d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logo from './logo.svg'; | |
| import './App.css'; | |
| import 'bootstrap/dist/css/bootstrap.min.css'; | |
| import { | |
| BrowserRouter, | |
| Routes, //replaces "Switch" used till v5 | |
| Route, | |
| } from "react-router-dom"; | |
| import Register from './screens/Register'; | |
| import Home from './screens/Home'; | |
| import Login from './screens/Login'; | |
| import UpdateUser from './screens/Update'; | |
| function App() { | |
| return ( | |
| <BrowserRouter> | |
| <Routes> | |
| <Route path="/register" element={<Register />} /> | |
| <Route path="/" element={<Login />} /> | |
| <Route path="/home" element={<Home />} /> | |
| <Route path="/updateUser/:username" element={<UpdateUser />} /> | |
| </Routes> | |
| </BrowserRouter> | |
| // use of component | |
| ); | |
| } | |
| export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment