Implement React Router
DylanTom opened this issue · 0 comments
DylanTom commented
Issue
Currently there is no routing system in place
Task
Use react-router-dom
to implement different paths in App.tsx
To-do
- Checkout a new branch
- Create a homepage component,
Home
incomponents
and migrate everything currently inApp.tsx
toHome.tsx
. - Use online documentation to create a framework for routing in react in
App.tsx
- Create one path
"/"
whose element isHome
- Create one path
"/reservation"
whose element isReservation
(use same code for now) - Create one path
"/room"
whose element isRoom
(use same code for now) - Create one path
"/admin"
whose element isAdmin
(use same code for now) - Create a pull request when done