From 6e4775493627cd87dfe03173bdb66a75e10721ba Mon Sep 17 00:00:00 2001 From: Max Belsky Date: Mon, 10 Dec 2018 17:48:07 +0300 Subject: [PATCH] Add example command to create typed project --- docusaurus/docs/adding-typescript.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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