mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
Got this warning when using the former version (#2693)
The --typescript option has been deprecated and will be removed in a future release. In future, please use --template typescript.
This commit is contained in:
committed by
Alexey Pyltsyn
parent
7ab8394ed6
commit
c8aef5dc0d
@@ -175,7 +175,7 @@ Create React App supports TypeScript out of the box.
|
||||
To create a **new project** with TypeScript support, run:
|
||||
|
||||
```bash
|
||||
npx create-react-app my-app --typescript
|
||||
npx create-react-app my-app --template typescript
|
||||
```
|
||||
|
||||
You can also add it to an **existing Create React App project**, [as documented here](https://facebook.github.io/create-react-app/docs/adding-typescript).
|
||||
|
||||
Reference in New Issue
Block a user