devFind is an open source project that aims to create a platform for developers to showcase their skills and connect with potential collaborators, all in a user-friendly and searchable format.
This PR updates the App component to use react-router-dom for routing, replacing the previous pathname-based conditional rendering. This change enhances navigation and improves code maintainability
Changes Proposed
1.Added Routing
Implemented BrowserRouter, Route, and Routes for robust navigation.
Defined routes for the main page and invalid routes
Description
This PR updates the App component to use react-router-dom for routing, replacing the previous pathname-based conditional rendering. This change enhances navigation and improves code maintainability
Changes Proposed
1.Added Routing
BrowserRouter
,Route
, andRoutes
for robust navigation.Checklist
Benefits of
react-router-dom
Routing:Drawbacks of Pathname Conditional Rendering:
Screenshots
1.Current Production (Invalid Route)
2.Updated Code (Invalid Route)