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

react-waterfall

> 前端框架
开源

基于新上下文 API 构建的 React 存储

1.3K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

基于新上下文 API 构建的 React 存储

React-瀑布

React 存储是基于 新的上下文 API 构建的

基本知识

store.js

javascript
import createStore from 'react-waterfall'

const config = {
  initialState: { count: 0 },
  actionsCreators: {
    increment: ({ count }) => ({ count: count + 1 }),
  },
}

export const { Provider, connect, actions } = createStore(config)

App.js

javascript
import { connect, Provider, actions } from './store'

let Count = ({ count }) => count
Count = connect(({ count }) => ({ count }))(Count)

const App = () => (
  
    
    +
  
)

DevTools

在开发过程中,redux-devtools会自动启用。请安装 扩展插件。

贡献者

https://github.com/didierfranc/react-waterfall/graphs/contributors

链接

  • https://twitter.com/DidierFranc/status/965733433711489024
  • https://medium.com/@DidierFranc/replacing-redux-with-the-new-react-context-api-8f5d01a00e8c

Issues· 0 开放

查看全部 Issues在 GitHub 打开

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

> 标签

JavaScriptcontextfluxjavascriptreactjs

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

> 工具信息

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

> 相关工具

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