Chapter 8. Single-page applications

This chapter covers

  • Working with multiple modules
  • Optimizing performance with Html.Lazy
  • Routing
  • Parsing URLs

Our manager adores the two pages we’ve built for Photo Groove, and has a visionary idea for where to go next: “Now that we have all these pages, we need a header across the top with links so users can get between them quickly. Oh! And make sure it doesn’t do that unsightly flash of blank page when switching between them. That drives me bananas.”

Indeed, two pages is a lot more than one; a header to switch between them sounds like just what the doctor ordered.

In this chapter, we’ll build a navigation header that is shared between the two pages we’ve built in the previous chapters. We’ll build the ...

Get Elm in Action 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.