A JavaScript library for predictable, maintainable global state management, usable with React or any other view library.
reduxjs/react-redux
Official React bindings for Redux, connecting Redux stores to React components via hooks and a Provider.
- Stars
- 23,424
- Forks
- 3,321
- Open issues
- 13
- Last commit
- 23 hours ago
What is it?
React Redux is the official library for connecting Redux stores to React components. It lets components read state from a Redux store and dispatch actions, with updates handled so that components re-render only when the data they use changes.
The library provides a Provider component that makes the store available throughout a React tree, along with hooks such as useSelector and useDispatch for accessing state and dispatching actions from function components. A connect higher-order component is also available for class-based or older code.
React Redux 9.0 requires React 18 or later. It is distributed on npm as react-redux, and the recommended setup for new projects is Redux Toolkit, which is configured by the official Vite and Next.js templates.
Key features
- 01Provider component that makes a Redux store available across a React app
- 02Hooks such as useSelector and useDispatch for function components
- 03connect higher-order component for class components and existing code
- 04Re-renders components only when the selected data changes
- 05Written in TypeScript with an MIT license
Use cases
- Adding Redux global state management to a React 18+ application
- Reading and updating shared application state from React components
- Maintaining existing class-based React code that uses connect
Quick start
- 1
Create a new Vite app with the official Redux+TS template
npx tiged reduxjs/redux-templates/packages/vite-template-redux my-app - 2
Install React Redux in an existing React app with npm
npm install react-redux
Things to know
- React Redux 9.0 requires React 18 or later.
Topics
FAQ
- What is react-redux?
- Official React bindings for Redux, connecting Redux stores to React components via hooks and a Provider. React Redux is the official library for connecting Redux stores to React components. It lets components read state from a Redux store and dispatch actions, with updates handled so that components re-render only when the data they use changes.
- Is react-redux free to use? What license does it have?
- react-redux is open source under the MIT license. Check the license terms before using it in commercial products.
- Is react-redux still maintained?
- Actively maintained. The last commit to react-redux was on Oct 21, 2026.
- What can I use react-redux for?
- Adding Redux global state management to a React 18+ application Reading and updating shared application state from React components Maintaining existing class-based React code that uses connect
- How do I install react-redux?
- Create a new Vite app with the official Redux+TS template: npx tiged reduxjs/redux-templates/packages/vite-template-redux my-app Install React Redux in an existing React app with npm: npm install react-redux
- Where can I get react-redux?
- The source code and installation instructions are on GitHub: https://github.com/reduxjs/react-redux
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A small, hook-based state-management library for React with no providers required.
A TypeScript library for creating memoized selector functions that derive data from Redux or other plain JavaScript state.
Async state management and data fetching library for web apps, with bindings for React, Vue, Svelte and Solid.
A JavaScript library that lets you write immutable state updates by mutating a draft copy of the current state.
A Redux middleware-style library that saves store state to storage and restores it when the app starts.