百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

easy-peasy

> 前端框架
开源

适合素食者的 React 状态

5.0K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

适合素食者的 React 状态

 

Vegetarian friendly state for React

 

> **v7 Beta** — this release modernises Easy Peasy around React 19's concurrent > primitives. The public store/model API is unchanged from v6 and the library is > feature-complete, but the v7 line is still in beta — APIs may shift in > response to feedback before the stable release. See the > [v6 → v7 upgrade guide](https://easy-peasy.dev/docs/upgrading-from-v6/) for > details, or view the [v6 docs](https://easy-peasy-v6.vercel.app/) for the > current stable release.

Easy Peasy is an abstraction of Redux, providing a reimagined API that focuses on developer experience. It allows you to quickly and easily manage your state, whilst leveraging the strong architectural guarantees and extensive eco-system that Redux has to offer.

  • Zero configuration
  • No boilerplate
  • React hooks based API
  • Extensive TypeScript support
  • Encapsulate data fetching
  • Computed properties
  • Reactive actions
  • Redux middleware support
  • State persistence
  • Redux Dev Tools
  • Global, context, or local stores
  • Built-in testing utils
  • React Native supported
  • Hot reloading supported

 

All of this comes via a single dependency install. While v7 is in beta it is published under the `beta` dist-tag — the `latest` tag will move to v7 once the stable release ships. ``` npm install easy-peasy@beta ```

 

## Fly like an eagle **Create your store** ```javascript const store = createStore({ todos: ['Create store', 'Wrap application', 'Use store'], addTodo: action((state, payload) => { state.todos.push(payload); }), }); ``` **Wrap your application** ```javascript function App() { return ( ); } ``` **Use the store** ```javascript function TodoList() { const todos = useStoreState((state) => state.todos); const addTodo = useStoreActions((actions) => actions.addTodo); return ( ))} ); } ```

 

## Examples See the [example folder](./examples) for more examples of how to use `easy-peasy`.

 

## Core Team

Peter Weinberg

Jørn A. Myrland

Sean Matheson

 

## Our Sponsors ❤️ We have only but great appreciation to those who support this project. If you have the ability to help contribute towards the continued maintenance and evolution of this library then please consider [[becoming a sponsor](https://opencollective.com/easy-peasy#backer)].

 

## Documentation See the [official website](https://easy-peasy.dev) for tutorials, docs, recipes, and more.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScripthooksimmerimmutablereact

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架