Skip to content

Commit 4a6007e

Browse files
mbelskymrmckeb
authored andcommitted
Add docs for creating new TypeScript project (#6015)
1 parent 1eff815 commit 4a6007e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docusaurus/docs/adding-typescript.md

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ title: Adding TypeScript
77
88
[TypeScript](https://www.typescriptlang.org/) is a typed superset of JavaScript that compiles to plain JavaScript.
99

10+
To start a new Create React App project with [TypeScript](https://www.typescriptlang.org/), you can run:
11+
12+
```bash
13+
$ npx create-react-app my-app --typescript
14+
$ # or
15+
$ yarn create react-app my-app --typescript
16+
```
17+
1018
To add [TypeScript](https://www.typescriptlang.org/) to a Create React App project, first install it:
1119

1220
```bash

0 commit comments

Comments
 (0)