Skip to content

Commit 4d12ce6

Browse files
authored
Add installation to readme (reduxjs#1545)
1 parent ffd963a commit 4d12ce6

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,30 @@ Performant and flexible.
1111

1212
## Installation
1313

14-
React Redux requires **React 16.8.3 or later.**
14+
### Using Create React App
1515

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
1620
```
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
1834
```
1935

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+
2038
This assumes that you’re using [npm](http://npmjs.com/) package manager
2139
with a module bundler like [Webpack](https://webpack.js.org/) or
2240
[Browserify](http://browserify.org/) to consume [CommonJS

0 commit comments

Comments
 (0)