© Yiyi Sun 2019
Yiyi SunPractical Application Development with AppRunhttps://doi.org/10.1007/978-1-4842-4069-4_4

4. View Patterns

Yiyi Sun1 
(1)
Thornhill, ON, Canada
 

This chapter is a deep dive into the view concept of AppRun, an important part of the AppRun architecture. In the AppRun event lifecycle, the view is responsible for displaying the web pages according to the application states.

The Document Object Model (DOM) is the programming API for web development. It allows us to manipulate the elements, styles, and content of the elements on the web pages. However, the view does not update the DOM directly. The view creates the data structure representation of the DOM, called the virtual DOM. AppRun renders the virtual DOM to the actual DOM. It ...

Get Practical Application Development with AppRun: Building Reliable, High-Performance Web Apps Using Elm-Inspired Architecture, Event Pub-Sub, and Components now with O’Reilly online learning.

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