TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The Two Reacts

3 点作者 alainchabat超过 1 年前

1 comment

turtleyacht超过 1 年前
Reminds me of Dubray&#x27;s State Action Model (SAM)¹:<p><pre><code> V = f( M.present( A(data) ) ) </code></pre> The view V (the &quot;UI&quot; 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².<p>A React example is at <a href="https:&#x2F;&#x2F;medium.com&#x2F;@metapgmr&#x2F;new-react-implementation-for-the-sam-pattern-a7ff40015802" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@metapgmr&#x2F;new-react-implementation-for-th...</a> (2023).<p>¹ <a href="http:&#x2F;&#x2F;sam.js.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;sam.js.org&#x2F;</a><p>² <a href="https:&#x2F;&#x2F;www.infoq.com&#x2F;articles&#x2F;no-more-mvc-frameworks&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.infoq.com&#x2F;articles&#x2F;no-more-mvc-frameworks&#x2F;</a>