From 1588b21fa6bccb995b002142ea530b1e5c2b33b8 Mon Sep 17 00:00:00 2001 From: Joel Lim <103879u@gmail.com> Date: Sat, 30 May 2020 06:34:00 +0800 Subject: [PATCH 1/2] edit typo --- docusaurus/docs/adding-typescript.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docusaurus/docs/adding-typescript.md b/docusaurus/docs/adding-typescript.md index 40c9c2242a8..26d41c8336f 100644 --- a/docusaurus/docs/adding-typescript.md +++ b/docusaurus/docs/adding-typescript.md @@ -16,11 +16,12 @@ npx create-react-app my-app --template typescript # or -yarn create react-app my-app --template typescript +yarn create-react-app my-app --template typescript ``` > If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` to ensure that `npx` always uses the latest version. -> +>ls +ls > Global installs of `create-react-app` are no longer supported. To add [TypeScript](https://www.typescriptlang.org/) to a Create React App project, first install it: From b278361e334e4bddcb78d9449968a140d9515eab Mon Sep 17 00:00:00 2001 From: Joel Lim <103879u@gmail.com> Date: Sat, 30 May 2020 06:39:41 +0800 Subject: [PATCH 2/2] fix accident --- docusaurus/docs/adding-typescript.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docusaurus/docs/adding-typescript.md b/docusaurus/docs/adding-typescript.md index 26d41c8336f..54951573a94 100644 --- a/docusaurus/docs/adding-typescript.md +++ b/docusaurus/docs/adding-typescript.md @@ -20,8 +20,8 @@ yarn create-react-app my-app --template typescript ``` > If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` to ensure that `npx` always uses the latest version. ->ls -ls +> + > Global installs of `create-react-app` are no longer supported. To add [TypeScript](https://www.typescriptlang.org/) to a Create React App project, first install it: