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 ```