Hacker News new | ask | show | jobs
by turtleyacht 897 days ago
Reminds me of Dubray's State Action Model (SAM)¹:

  V = f( M.present( A(data) ) )
The view V (the "UI" on the left in the article) is computed from an Action started by the user and proposed (presented) to the model M, which decides whether to update; then a next-action predicate (function) may be called².

A React example is at https://medium.com/@metapgmr/new-react-implementation-for-th... (2023).

¹ http://sam.js.org/

² https://www.infoq.com/articles/no-more-mvc-frameworks/