Hacker News new | ask | show | jobs
The Two Reacts (overreacted.io)
3 points by alainchabat 891 days ago
1 comments

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/