From 768efc3659084f884324b782b4239bf078b0f3f0 Mon Sep 17 00:00:00 2001 From: socar-letsbe <70879665+socar-letsbe@users.noreply.github.com> Date: Wed, 26 May 2021 15:42:42 +0900 Subject: [PATCH] Update 02-ts-react-basic.md Edit 'create-react-app' options ref : https://create-react-app.dev/docs/adding-typescript/ --- using-typescript/02-ts-react-basic.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/using-typescript/02-ts-react-basic.md b/using-typescript/02-ts-react-basic.md index abf5d86..a97bd4d 100644 --- a/using-typescript/02-ts-react-basic.md +++ b/using-typescript/02-ts-react-basic.md @@ -9,7 +9,7 @@ 타입스크립트를 사용하는 리액트 프로젝트를 만들때는 다음과 같이 명령어를 사용하세요. ```bash -$ npx create-react-app ts-react-tutorial --typescript +$ npx create-react-app ts-react-tutorial --template typescript ``` 위와 같이 뒤에 `--typescript` 가 있으면 타입스크립트 설정이 적용된 프로젝트가 생성된답니다. @@ -282,4 +282,4 @@ TypeScript 를 사용하신다면 만약 여러분이 컴포넌트를 렌더링 이제, 여러분들은 함수형 컴포넌트를 타입스크립트로 작성하는 기본적인 방법을 배우셨습니다. -다음 섹션에서는 상태관리를 하는 방법도 알아보도록 하겠습니다. \ No newline at end of file +다음 섹션에서는 상태관리를 하는 방법도 알아보도록 하겠습니다.