Apply the Elm Architecture
The Elm Architecture is Elm’s built-in framework for creating applications. In this section, you will learn about the architecture through adding a new feature to the Picshare application.
The Elm Architecture provides a standard way of building applications known as the Model-View-Update pattern. As its name suggests, this pattern has three important parts: a model, a view, and a method of updating the model. In the figure, you can see an overview of how the Elm Architecture works. You’ll revisit later how all the pieces in the figure fit together. For now, we’ll gain our understanding of a model by adding one to the application.
Create a Model
In Elm applications, the model is responsible for containing all your ...
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