Skip to content

Commit

Permalink
Merge pull request #3422 from reduxjs/getting-started-update
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed May 6, 2023
2 parents 627572a + 239e324 commit 1e5c7a0
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions docs/introduction/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,26 @@ you make your Redux code better.

## Installation

### Using Create React App
### Create a React Redux App

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.
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).

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.

```bash
# Redux + Plain JS template
npx create-react-app my-app --template redux
# 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

# Redux + TypeScript template
npx create-react-app my-app --template redux-typescript
# Next.js using the `with-redux` template
npx create-next-app --example with-redux my-app
```

We do not currently have official React Native templates, but recommend these templates for standard React Native and for Expo:

- https://github.com/rahsheen/react-native-template-redux-typescript
- https://github.com/rahsheen/expo-template-redux-typescript

### An Existing App

Redux Toolkit is available as a package on NPM for use with a module bundler or in a Node application:
Expand Down

0 comments on commit 1e5c7a0

Please sign in to comment.