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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Simple react hook-based global state library

7 点作者 munawwar超过 5 年前

2 条评论

munawwar超过 5 年前
I am the author and I am aware that the number of hook based global state libraries are like increasing <i>per week</i>. But it only means that all the authors combined are onto something.<p>The simplicity of these hook based libraries are much much more appealing than say redux, mobx or even context api. Minimal setup time, simple to use.. not having to worry about potentially future performance issues (as with context api.. for those not aware, there is a sentence in react docs saying context forces re-render whenever the content changes regardless of shouldComponentUpdate rules)<p>The TypeScript part is simple too. Don&#x27;t have to create classes or annotations. Create a type for your store data structure and start hacking away.<p>What do you all think?
sevketarslan超过 5 年前
Simple yet effective solution to hook based global state libraries. Works like a charm.