From b2f9ee371d1c7f3d82b37990f4bcedb63bcd4115 Mon Sep 17 00:00:00 2001 From: mubarakn <45306327+mubarakn@users.noreply.github.com> Date: Thu, 13 Jan 2022 03:13:18 +0530 Subject: [PATCH] prevent both npm and yarn commands from being copied (#11757) --- docusaurus/docs/adding-typescript.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docusaurus/docs/adding-typescript.md b/docusaurus/docs/adding-typescript.md index 6f4c86c6cc7..75ebe493a3e 100644 --- a/docusaurus/docs/adding-typescript.md +++ b/docusaurus/docs/adding-typescript.md @@ -13,9 +13,9 @@ To start a new Create React App project with [TypeScript](https://www.typescript ```sh npx create-react-app my-app --template typescript - -# or - +``` +or +```sh yarn create react-app my-app --template typescript ``` @@ -27,9 +27,9 @@ 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 - -# or - +``` +or +```sh yarn add typescript @types/node @types/react @types/react-dom @types/jest ```