Build a Skeleton SPA
In this book’s beginning chapters, you built a nifty Picshare application that displayed a feed of photos. We’re welcoming it back for one last hurrah. You will convert Picshare into a single-page application. By the end of this chapter, your Picshare application will display a public feed of photos, an individual user’s feed of photos, and an account page.
You’ll slowly work toward the final result. First, you need to connect some SPA plumbing. In this section, you will create an SPA skeleton. You will use the elm/url package to convert the current URL into a route. Then, you will access the current URL with a new function from the Browser module and store page state with the Elm Architecture. Finally, you will display ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access