You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3638,8 +3638,15 @@
3638
3638
Relay is a JavaScript framework for providing a data layer and client-server communication to web applications using the React view layer.
3639
3639
3640
3640
205. ### How to use TypeScript in `create-react-app` application?
3641
+
Starting from react-scripts@2.1.0 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
3641
3644
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.
3643
3650
3644
3651
Now the project layout should look like the following:
0 commit comments