Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.3k
Official React bindings for Redux
License
reduxjs/react-redux
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Official React bindings forRedux.Performant and flexible.
The recommended way to start new apps with React and Redux is by usingour official Redux+TS template for Vite, or by creating a new Next.js project usingNext'swith-redux template.
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.
# Vite with our Redux+TS template# (using the `degit` tool to clone and extract the template)npx degit reduxjs/redux-templates/packages/vite-template-redux my-app# Next.js using the `with-redux` templatenpx create-next-app --example with-redux my-app
React Redux 9.0 requiresReact 18 or later
To use React Redux with your React app, install it as a dependency:
# If you use npm:npm install react-redux# Or if you use Yarn:yarn add react-redux
You'll also need toinstall Redux andset up a Redux store in your app.
This assumes that you’re usingnpm package managerwith a module bundler likeWebpack orBrowserify to consumeCommonJSmodules.
If you don’t yet usenpm or a modern module bundler, and would rather prefer a single-fileUMD build that makesReactRedux available as a global object, you can grab a pre-built version fromcdnjs. Wedon’t recommend this approach for any serious application, as most of the libraries complementary to Redux are only available onnpm.
The React Redux docs are published athttps://react-redux.js.org .
The postThe History and Implementation of React-Reduxexplains what it does, how it works, and how the API and implementation have evolved over time.
There's also aDeep Dive into React-Redux talk that covers some of the same material at a higher level.
About
Official React bindings for Redux
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.