Organize the View

In this section, you will learn about the application and discover the problems with its view function. The previous developer put all the application’s markup inside one view function, creating tons of duplication and hard-to-read code. You will spend extra development time adding new features unless you organize the view function first. Let’s fix this dilemma. You will divide the view function into separate functions to make the code more understandable.

Build a Salad

A large chain of restaurants known as Saladise needs help with a new salad-builder application. Customers can customize a salad with their favorite greens, toppings, and dressing. Then, they can supply contact information to receive an alert to pick up their ...

Get Programming Elm now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.