Skip to content

Commit 12d6583

Browse files
committed
Update typescript support question
1 parent b18964f commit 12d6583

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3638,8 +3638,15 @@
36383638
Relay is a JavaScript framework for providing a data layer and client-server communication to web applications using the React view layer.
36393639
36403640
205. ### How to use TypeScript in `create-react-app` application?
3641+
Starting from [email protected] or higher, there is a built-in support for typescript. You can just pass `--typescript` option as below
3642+
```bash
3643+
npx create-react-app my-app --typescript
36413644
3642-
When you create a new project supply `--scripts-version` option as `react-scripts-ts`. `react-scripts-ts` is a set of adjustments to take the standard `create-react-app` project pipeline and bring TypeScript into the mix.
3645+
# or
3646+
3647+
yarn create react-app my-app --typescript
3648+
```
3649+
But for lower versions of react scripts, just supply `--scripts-version` option as `react-scripts-ts` while you create a new project. `react-scripts-ts` is a set of adjustments to take the standard `create-react-app` project pipeline and bring TypeScript into the mix.
36433650
36443651
Now the project layout should look like the following:
36453652

0 commit comments

Comments
 (0)