Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 8 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /