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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: redeuceur – A utility for creating terse Redux reducers

4 点作者 noshbrinken将近 8 年前

1 comment

acemarke将近 8 年前
Heh. Quoting my tweet from last December at <a href="https:&#x2F;&#x2F;twitter.com&#x2F;acemarke&#x2F;status&#x2F;809427191306059776" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;acemarke&#x2F;status&#x2F;809427191306059776</a> :<p>&gt; If I had a nickel for every lib I&#x27;ve seen that lets me &quot;Write reducers with less boilerplate&quot;, I&#x27;d have... well, several dollars, anyway<p>Case in point, the &quot;Reducers&quot; page [0] in my Redux addons catalog lists dozens of reducer utility libs , and there&#x27;s even more under the &quot;Action&#x2F;Reducer Generation&quot; page [1]. (Yes, those two pages are cluttered and need to be reorganized, but I haven&#x27;t had time yet. I&#x27;ll also note that I did just add redeuceur to my list a couple days ago as well.)<p>So, good news is that if you want to abstract out the process of defining reducers and action creators, there&#x27;s a gazillion libs out there to help you do that. As always, it&#x27;s up you you to decide how much abstraction _you_ want to use in a Redux app [2].<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;markerikson&#x2F;redux-ecosystem-links&#x2F;blob&#x2F;master&#x2F;reducers.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;markerikson&#x2F;redux-ecosystem-links&#x2F;blob&#x2F;ma...</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;markerikson&#x2F;redux-ecosystem-links&#x2F;blob&#x2F;master&#x2F;action-reducer-generators.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;markerikson&#x2F;redux-ecosystem-links&#x2F;blob&#x2F;ma...</a><p>[2] <a href="http:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2017&#x2F;05&#x2F;idiomatic-redux-tao-of-redux-part-2&#x2F;" rel="nofollow">http:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2017&#x2F;05&#x2F;idiomatic-redux-tao...</a>
评论 #14698960 未加载