Skip to content

Commit ffd963a

Browse files
nickservtimdorr
andauthored
Add "Create an App" to quick start (reduxjs#1543)
* Add "Create a React Redux App" to quick start * Remove bold formatting for consistency * Adjust wording for React Redux * Update docs/introduction/quick-start.md * Move up CRA template * Remove the cd/start commands They're already recommended by the create-react-app command Co-authored-by: Tim Dorr <[email protected]>
1 parent 0520f36 commit ffd963a

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

docs/introduction/quick-start.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,23 @@ sidebar_label: Quick Start
1313

1414
React Redux 7.1 requires **React 16.8.3 or later.**
1515

16-
To use React Redux with your React app:
16+
### Using Create React App
1717

18-
```bash
19-
npm install react-redux
18+
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/).
19+
20+
```sh
21+
npx create-react-app my-app --template redux
2022
```
2123

22-
or
24+
### An Existing React App
25+
26+
To use React Redux with your React app, install it as a dependency:
2327

2428
```bash
29+
# If you use npm:
30+
npm install react-redux
31+
32+
# Or if you use Yarn:
2533
yarn add react-redux
2634
```
2735

0 commit comments

Comments
 (0)