登录 注册

react-redux

去点 Star
数据分析与数据处理 reactredux
23,426
Stars
3,319
Forks
385
Watchers
15
Open Issues
MIT
许可证
TypeScript
语言
2015-07-11
创建时间
2026-10-28
最近更新

项目能做什么

Redux 的官方 React 绑定库。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# React Redux

Official React bindings for [Redux](https://github.com/reduxjs/redux).
Performant and flexible.

![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/reduxjs/react-redux/test.yml?style=flat-square) [![npm version](https://img.shields.io/npm/v/react-redux.svg?style=flat-square)](https://www.npmjs.com/package/react-redux)
[![npm downloads](https://img.shields.io/npm/dm/react-redux.svg?style=flat-square)](https://www.npmjs.com/package/react-redux)
[![#redux channel on Discord](https://img.shields.io/badge/discord-redux@reactiflux-61DAFB.svg?style=flat-square)](http://www.reactiflux.com)

## Installation

### Create a React Redux App

The recommended way to start new apps with React and Redux is by using [our official Redux+TS template for Vite](https://github.com/reduxjs/redux-templates), or by creating a new Next.js project using [Next's `with-redux` template](https://github.com/vercel/next.js/tree/canary/examples/with-redux).

Both of these already have Redux Toolkit and React-Redux configured appropriately for that build tool, and come with a small example app that demonstrates how to use several of Redux Toolkit's features.

```bash
# Vite with our Redux+TS template
# (using the `tiged` tool to clone and extract the template)
npx tiged reduxjs/redux-templates/packages/vite-template-redux my-app

# Next.js using the `with-redux` template
npx create-next-app --example with-redux my-app
```

### An Existing React App

React Redux 9.0 requires **React 18 or later**

To use React Redux with your React app, install it as a dependency:

```bash
# If you use npm:
npm install react-redux

# Or if you use Yarn:
yarn add react-redux
```

You'll also need to [install Redux](https://redux.js.org/introduction/installation) and [set up a Redux store](https://redux.js.org/recipes/configuring-your-store/) in your app.

This assumes that you’re using [npm](http://npmjs.com/) package manager
with a module bundler like [Webpack](https://webpack.js.org/) or
[Browserify](http://browserify.org/) to consume [CommonJS
modules](https://webpack.js.org/api/module-methods/#commonjs).

If you don’t yet use [npm](http://npmjs.com/) or a modern module bundler, and would rather prefer a single-file [UMD](https://github.com/umdjs/umd) build that makes `ReactRedux` available as a global object, you can grab a pre-built version from [cdnjs](https://cdnjs.com/libraries/react-redux). We _don’t_ recommend this approach for any serious application, as most of the libraries complementary to Redux are only available on [npm](http://npmjs.com/).

## Documentation

The React Redux docs are published at **https://react-redux.js.org** .

## How Does It Work?

The post [The History and Implementation of React-Redux](https://blog.isquaredsoftware.com/2018/11/react-redux-history-implementation/)
explains what it does, how it works, and how the API and implementation have evolved over time.

There's also a [Deep Dive into React-Redux](https://blog.isqua
阅读完整原文

项目深度分析 AI 生成

React-Redux 遗留项目自动化迁移与代码现代化工具

产品构想针对停留在老版本 React-Redux(如 v5/v7,依赖 connect HOC 及类组件)的大型存量项目,开发基于 AST 的自动化扫描、重构和迁移至 React 18+ Hooks(useSelector/useDispatch)及 Redux Toolkit 的工具链。
核心功能代码静态分析与兼容性评估报告、connect 到 Hooks 的自动语法树转换、类型推断与自动补全、破坏性变更风险提示。
目标用户中大型企业前端架构师、外包技术团队、遗留系统维护人员。
难度/周期中等 · 2-3 个月 · 成本:低(主要为开发工时与轻量级展示站部署成本)
收费模式CLI 工具基础版免费,企业版按扫描代码库规模/项目授权收费,附带人工迁移咨询服务。
竞争风险开源社区存在如 jscodeshift 等免费通用脚本,用户可能倾向于自行编写转换脚本。
依据 数据支持的判断

Redux 状态链路生产级可观测性与回放插件 (SaaS)

产品构想利用 Redux 确定性状态流特性,构建面向生产环境的前端状态黑匣子,捕获异常发生前后的 Action 流和状态切片,提供全景时间旅行式排障回放。
核心功能零侵入式 Redux 中间件上报、敏感状态自动脱敏机制、Web 端时间旅行复现界面、与 Sentry 等主流监控工具的异常事件关联。
目标用户SaaS 企业前端团队、技术支持与 QA 工程师、高可用前端业务团队。
难度/周期高 · 3-5 个月 · 成本:中等(需要时间序列数据存储与高并发日志收集服务器)
收费模式按上报事件量或活跃用户数实行梯级 SaaS 订阅订阅制。
竞争风险LogRocket、Datadog 等成熟 APM 产品已有相关能力,推测独立开发者获客与信任成本极高。
依据 AI推测

React-Redux 渲染性能诊断与 Selector 审查工具

产品构想针对 React-Redux 常见的不必要重渲染及 Selector 缓存击穿问题,开发轻量级 IDE 插件或性能审计工具,提供实时性能开销预警与重构建议。
核心功能useSelector 依赖反模式检测、Reselect 缓存命中率实时统计、组件重渲染溯源火焰图、优化建议代码一键生成。
目标用户关注交互流畅度的富客户端开发者(如金融终端、低代码平台、在线设计工具研发团队)。
难度/周期中等 · 1-2 个月 · 成本:极低(纯客户端工具,无持续运维服务器开销)
收费模式桌面端工具或 IDE 插件采用免费试用 + 个人/团队商业许可证买断制。
竞争风险官方已提供免费的 React DevTools 与 Redux DevTools,用户单独付费购买周边工具意愿推测偏弱。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2015-07-11,近 30 天仍在推送,发布过 100 个 Release
社区活跃Star 23,426 / Fork 3,319 / Issue 15(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。