© Vasan Subramanian 2017

Vasan Subramanian, Pro MERN Stack, 10.1007/978-1-4842-2653-7_8

8. Routing with React Router

Vasan Subramanian

(1)Bangalore, Karnataka, India

Now that we’ve organized the project and added development tools, let’s get back to adding more features to the Issue Tracker. In this chapter, we’ll explore the concept of routing, or handling multiple pages that we may need to display. Even when you build a single-page application (SPA ), there are in fact multiple logical pages (or views) within the application. It’s just that the page load happens only the first time; after that, each of the other views is loaded by manipulating or changing the DOM.

To navigate between different views of the application, you need routing. Routing ...

Get Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.