Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
The Two Reacts (overreacted.io)
3 points by alainchabat on Jan 10, 2024 | hide | past | favorite | 1 comment



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/




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: