react-redux

Official React bindings for Redux

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-redux
8.0.23 months ago7 years agoMinified + gzip package size for react-redux in KB

Readme

React Redux
Official React bindings for Redux. Performant and flexible. GitHub Workflow Status npm version npm downloads #redux channel on Discord

Installation

Using Create React App

The recommended way to start new apps with React Redux is by using the official Redux+JS/TS templates for Create React App, which takes advantage of Redux Toolkit. ```sh
JS
npx create-react-app my-app --template redux
TS
npx create-react-app my-app --template redux-typescript ```

An Existing React App

React Redux 8.0 requires React 16.8.3 or later (or React Native 0.59 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 and set up a Redux store in your app. This assumes that you’re using npm package manager with a module bundler like Webpack or Browserify to consume CommonJS modules. If you don’t yet use npm or a modern module bundler, and would rather prefer a single-file UMD build that makes ReactRedux available as a global object, you can grab a pre-built version from cdnjs. We don’t recommend this approach for any serious application, as most of the libraries complementary to Redux are only available on npm.

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 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 talk that covers some of the same material at a higher level.

License

MIT