From 3bef6edc6c1c460e1f9336f0e5f56aa46c84387e Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Sun, 14 Feb 2021 09:53:55 -0800 Subject: [PATCH] split code blocks for easier copying and pasting --- docusaurus/docs/adding-typescript.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docusaurus/docs/adding-typescript.md b/docusaurus/docs/adding-typescript.md index 6f4c86c6cc7..01fd483b6b7 100644 --- a/docusaurus/docs/adding-typescript.md +++ b/docusaurus/docs/adding-typescript.md @@ -9,13 +9,13 @@ title: Adding TypeScript ## Installation -To start a new Create React App project with [TypeScript](https://www.typescriptlang.org/), you can run: +To start a new Create React App project with [TypeScript](https://www.typescriptlang.org/), you can run ```sh npx create-react-app my-app --template typescript - -# or - +``` +or +```sh yarn create react-app my-app --template typescript ``` @@ -23,13 +23,13 @@ yarn create react-app my-app --template typescript > > Global installs of `create-react-app` are no longer supported. -To add [TypeScript](https://www.typescriptlang.org/) to an existing Create React App project, first install it: +To add [TypeScript](https://www.typescriptlang.org/) to an existing Create React App project, first install it with ```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 ```