Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Official React bindings for Redux

License

NotificationsYou must be signed in to change notification settings

reduxjs/react-redux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Official React bindings forRedux.Performant and flexible.

GitHub Workflow Statusnpm versionnpm downloads#redux channel on Discord

Installation

Create a React Redux App

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

An Existing React 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.

Documentation

The React Redux docs are published athttps://react-redux.js.org .

How Does It Work?

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.

License

MIT


[8]ページ先頭

©2009-2025 Movatter.jp