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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Do React Hooks Replace Redux? TL;DR: Hooks Are Great, but No

6 点作者 ericelliott将近 6 年前

1 comment

acemarke将近 6 年前
I frequently disagree with Eric Elliott&#x27;s opinions (like claiming that TypeScript is useless, or that everyone should learn &quot;concatenative inheritance&quot;). That said, this article basically matches how I would describe the situation: hooks like `useContext` and `useReducer` overlap with some of the ways you&#x27;d use Redux, but overall are a different tool for different use cases. Both have their place, and there&#x27;s still lots of reasons to use Redux.<p>I&#x27;ve tackled this topic in a few places:<p>- Reactathon 2019 Keynote: The State of Redux (<a href="https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2019&#x2F;03&#x2F;presentation-state-of-redux&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2019&#x2F;03&#x2F;presentation-state...</a>)<p>- Redux - Not Dead Yet! (<a href="https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2018&#x2F;03&#x2F;redux-not-dead-yet&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2018&#x2F;03&#x2F;redux-not-dead-yet...</a>)<p>- Thoughts on React Hooks, Redux, and Separation of Concerns (<a href="https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2019&#x2F;07&#x2F;blogged-answers-thoughts-on-hooks&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2019&#x2F;07&#x2F;blogged-answers-th...</a>)
评论 #20545445 未加载