1. 20
    Support Multiple Views in a Single Page Application with @reach/router
    6m 43s

Support Multiple Views in a Single Page Application with @reach/router

InstructorAndy Van Slaars

Share this video with your friends

Send Tweet

From a user perspective, navigating your application should be the same whether its a server-rendered PHP app, or a single page app written with React. To avoid breaking known paradigms for our users, we want as link to behave like a link. A view change should come with corresponding updates to the browser's address bar and the back button should work as expected. In this lesson, we'll install @reach/router and set our application up with a second view that we can navigate to with a link. We'll also verify that the browser's back button works.