You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-2Lines changed: 20 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,12 +11,30 @@ Performant and flexible.
11
11
12
12
## Installation
13
13
14
-
React Redux requires **React 16.8.3 or later.**
14
+
### Using Create React App
15
15
16
+
The recommended way to start new apps with React Redux is by using the [official Redux+JS template](https://github.com/reduxjs/cra-template-redux) for [Create React App](https://github.com/facebook/create-react-app), which takes advantage of [Redux Toolkit](https://redux-toolkit.js.org/).
17
+
18
+
```sh
19
+
npx create-react-app my-app --template redux
16
20
```
17
-
npm install --save react-redux
21
+
22
+
### An Existing React App
23
+
24
+
React Redux 7.1 requires **React 16.8.3 or later.**
25
+
26
+
To use React Redux with your React app, install it as a dependency:
27
+
28
+
```bash
29
+
# If you use npm:
30
+
npm install react-redux
31
+
32
+
# Or if you use Yarn:
33
+
yarn add react-redux
18
34
```
19
35
36
+
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.
37
+
20
38
This assumes that you’re using [npm](http://npmjs.com/) package manager
21
39
with a module bundler like [Webpack](https://webpack.js.org/) or
22
40
[Browserify](http://browserify.org/) to consume [CommonJS
0 commit comments