diff --git a/docusaurus/docs/adding-typescript.md b/docusaurus/docs/adding-typescript.md index 6f4c86c6cc7..85d5e394468 100644 --- a/docusaurus/docs/adding-typescript.md +++ b/docusaurus/docs/adding-typescript.md @@ -13,9 +13,10 @@ To start a new Create React App project with [TypeScript](https://www.typescript ```sh npx create-react-app my-app --template typescript +``` +Alternatively you may use yarn: -# or - +``` yarn create react-app my-app --template typescript ``` @@ -27,9 +28,10 @@ To add [TypeScript](https://www.typescriptlang.org/) to an existing Create React ```sh npm install --save typescript @types/node @types/react @types/react-dom @types/jest +``` +Alternatively you may use yarn: -# or - +``` yarn add typescript @types/node @types/react @types/react-dom @types/jest ```