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 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.