diff --git a/docusaurus/docs/adding-typescript.md b/docusaurus/docs/adding-typescript.md index 68b79165f4a..7d6a61ed19e 100644 --- a/docusaurus/docs/adding-typescript.md +++ b/docusaurus/docs/adding-typescript.md @@ -7,6 +7,14 @@ title: Adding TypeScript [TypeScript](https://www.typescriptlang.org/) is a typed superset of JavaScript that compiles to plain JavaScript. +To start a new Create React App project with [TypeScript](https://www.typescriptlang.org/), you can run: + +```bash +$ npx create-react-app my-app --typescript +$ # or +$ yarn create react-app my-app --typescript +``` + To add [TypeScript](https://www.typescriptlang.org/) to a Create React App project, first install it: ```bash