Skip to content

Commit 97edc0f

Browse files
committed
copy over new setup instructions
1 parent 89a8680 commit 97edc0f

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

docs/introduction/getting-started.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,26 @@ import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css'
1919

2020
React Redux 8.x requires **React 16.8.3 or later** / **React Native 0.59 or later**, in order to make use of React Hooks.
2121

22-
### Using Create React App
22+
### Create a React Redux App
2323

24-
The recommended way to start new apps with React and Redux is by using the [official Redux+JS template](https://github.com/reduxjs/cra-template-redux) or [Redux+TS template](https://github.com/reduxjs/cra-template-redux-typescript) for [Create React App](https://github.com/facebook/create-react-app), which takes advantage of **[Redux Toolkit](https://redux-toolkit.js.org/)** and React Redux's integration with React components.
24+
The recommended way to start new apps with React and Redux is by using [our official Redux+TS template for Vite](https://github.com/reduxjs/redux-templates), or by creating a new Next.js project using [Next's `with-redux` template](https://github.com/vercel/next.js/tree/canary/examples/with-redux).
25+
26+
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.
2527

2628
```bash
27-
# Redux + Plain JS template
28-
npx create-react-app my-app --template redux
29+
# Vite with our Redux+TS template
30+
# (using the `degit` tool to clone and extract the template)
31+
npx degit reduxjs/redux-templates/packages/vite-template-redux my-app
2932

30-
# Redux + TypeScript template
31-
npx create-react-app my-app --template redux-typescript
33+
# Next.js using the `with-redux` template
34+
npx create-next-app --example with-redux my-app
3235
```
3336

37+
We do not currently have official React Native templates, but recommend these templates for standard React Native and for Expo:
38+
39+
- https://github.com/rahsheen/react-native-template-redux-typescript
40+
- https://github.com/rahsheen/expo-template-redux-typescript
41+
3442
### An Existing React App
3543

3644
To use React Redux with your React app, install it as a dependency:

0 commit comments

Comments
 (0)