Menu

Client-Side Routing

Client-Side Routing

Client-side routing allows different pages to load based on the URL, without refreshing the browser. This project uses React Router (BrowserRouter, Routes, Route) to separate the two sides of the app—visiting / loads CustomerPage, while visiting /admin loads AdminPage —letting one codebase serve two completely different experiences depending on the path typed into the browser.