diff --git a/content/docs/static-type-checking.md b/content/docs/static-type-checking.md index e1d76097..2cfb7c68 100644 --- a/content/docs/static-type-checking.md +++ b/content/docs/static-type-checking.md @@ -160,10 +160,10 @@ Now you're all set! We recommend to check out the following resources to learn m ## TypeScript -[TypeScript](https://www.typescriptlang.org/) is a programming language developed by Microsoft. It is a typed superset of JavaScript, and includes its own compiler. Being a typed language, Typescript can catch errors and bugs at build time, long before your app goes live. You can learn more about using TypeScript with React [here](https://github.com/Microsoft/TypeScript-React-Starter#typescript-react-starter). +[TypeScript](https://www.typescriptlang.org/) is a programming language developed by Microsoft. It is a typed superset of JavaScript, and includes its own compiler. Being a typed language, TypeScript can catch errors and bugs at build time, long before your app goes live. You can learn more about using TypeScript with React [here](https://github.com/Microsoft/TypeScript-React-Starter#typescript-react-starter). To use TypeScript, you need to: -* Add Typescript as a dependency to your project +* Add TypeScript as a dependency to your project * Configure the TypeScript compiler options * Use the right file extensions * Add definitions for libraries you use @@ -289,17 +289,17 @@ declare module 'querystring' { ### Using TypeScript with Create React App -[react-scripts-ts](https://www.npmjs.com/package/react-scripts-ts) automatically configures a `create-react-app` project to support TypeScript. You can use it like this: +Create React App supports TypeScript out of the box. You can use it like this: ```bash -create-react-app my-app --scripts-version=react-scripts-ts +create-react-app my-app --typescript ``` -Note that it is a **third party** project, and is not a part of Create React App. +If you have an existing project, [you can read the documentation](https://facebook.github.io/create-react-app/docs/adding-typescript) on adding TypeScript. You can also try [typescript-react-starter](https://github.com/Microsoft/TypeScript-React-Starter#typescript-react-starter). -You are now ready to code! We recommend to check out the following resources to learn more about Typescript: +You are now ready to code! We recommend to check out the following resources to learn more about TypeScript: * [TypeScript Documentation: Basic Types](https://www.typescriptlang.org/docs/handbook/basic-types.html) * [TypeScript Documentation: Migrating from Javascript](https://www.typescriptlang.org/docs/handbook/migrating-from-javascript.html)