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

3. Model the State

Yiyi Sun1 
Thornhill, ON, Canada

This chapter is a deep dive into the state concept of AppRun. The state is one of three main parts of the AppRun architecture. It plays an important role in the AppRun event lifecycle. It is equivalent to the mode of the Elm architecture. Elm defines the model as the application state. If fact, model and state are two names for the same thing. They are interchangeable in the AppRun architecture. Most of the time, we use the term state in AppRun.

In this chapter, you will learn about the concept of state, how to time-travel through the application state history to develop the undo and ...

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

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