Modern web applications often need multiple pages or views — for example, a homepage, about page, and contact page.
But React is a Single Page Application (SPA) framework. This means it doesn’t reload pages like traditional websites. Instead, it dynamically renders components based on the URL — and that’s where React Router comes in.
React Router allows navigation between pages without refreshing the browser.