Skip to content

Commit e215baa

Browse files
authored
Replace CRA in README with VIte and Next (#2101)
1 parent ad56bd0 commit e215baa

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

Diff for: README.md

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# React Redux
22

3-
Official React bindings for [Redux](https://github.com/reduxjs/redux).
3+
Official React bindings for [Redux](https://github.com/reduxjs/redux).
44
Performant and flexible.
55

66
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/reduxjs/react-redux/test.yml?style=flat-square) [![npm version](https://img.shields.io/npm/v/react-redux.svg?style=flat-square)](https://www.npmjs.com/package/react-redux)
@@ -9,16 +9,19 @@ Performant and flexible.
99

1010
## Installation
1111

12-
### Using Create React App
12+
### Create a React Redux App
1313

14-
The recommended way to start new apps with React Redux is by using the [official Redux+JS/TS templates](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/).
14+
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).
1515

16-
```sh
17-
# JS
18-
npx create-react-app my-app --template redux
16+
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.
1917

20-
# TS
21-
npx create-react-app my-app --template redux-typescript
18+
```bash
19+
# Vite with our Redux+TS template
20+
# (using the `degit` tool to clone and extract the template)
21+
npx degit reduxjs/redux-templates/packages/vite-template-redux my-app
22+
23+
# Next.js using the `with-redux` template
24+
npx create-next-app --example with-redux my-app
2225
```
2326

2427
### An Existing React App

0 commit comments

Comments
 (0)