Settings

Theme

The Two Reacts

overreacted.io

3 points by alainchabat 2 years ago · 1 comment

Reader

turtleyacht 2 years 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/

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection