4 ms·
The Two Reacts
- turtleyacht 3y agoReminds 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-the-sam-pattern-a7ff40015802 https://medium.com/@metapgmr/new-react-implementation-for-th... (2023). ¹ http://sam.js.org/ http://sam.js.org/ ² https://www.infoq.com/articles/no-more-mvc-frameworks/ https://www.infoq.com/articles/no-more-mvc-frameworks/