July 2019
Intermediate to advanced
310 pages
7h 26m
English
So far, your single-page application only displays placeholder content. You need it to display a feed of photos and an account page. Inside your picshare-spa/src directory, you have an Account.elm application so you could port its code and Picshare’s code into Main.elm. But then that would create a large, unwieldy application.
Instead, you will build a modular application with components. In this section, you will learn what components are and how to wire up an Account component inside the Main module. You will store Account’s model inside Main’s model, route Account messages from Main to Account, and display Account’s content inside Main’s view function.
Before you begin, familiarize yourself ...
Read now
Unlock full access