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 ...
Get Programming Elm 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.