![](https://s14363.pcdn.co/wp-content/uploads/2020/08/Screen-Shot-2020-08-24-at-2.48.46-PM-1024x731.png)
TL;DR
In the previous post, we learned Elm Record Type, an Elm implementation of key/value data pairs. Elm Record Type is a basic block for creating Elm Record Model. This post is part of the functional language series, and it is based on a remarkable book Programming Elm Build Safe and Maintainable Front-End Applications by Jeremy Fairbank.
Elm Record Model
Elm Record Model handles Elm application data. As our PicShare application is about displaying and commenting pictures, we will create a Record Model for photos. We created Elm Record type annotation initialModel
and one Record instance of that model that represents one instance of a picture in our Picshare
application.
Recompile Picshare
application and we are ready to create View
for our Picshare
application.