Skip to content

Commit 67dd4f1

Browse files
author
Yota Hamada
authored
Merge pull request #162 from takumin0423/fix-create-react-app
create-react-appの説明を変更
2 parents 205acb0 + dbc5098 commit 67dd4f1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

browser.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,9 @@ TypeScriptを使用してReactのWebアプリケーションを作成する場
168168

169169
### 簡単にプロジェクトをセットアップする
170170

171-
まず、Create React Appをインストールします。npmを利用して、`npm i -g create-react-app`というコマンドでローカルPCにグローバルにインストールできます。
172-
173-
Create React Appのインストールができたら、[Reactの公式Webサイト](https://reactjs.org/docs/static-type-checking.html#using-typescript-with-create-react-app)に書かれているように`npx create-react-app my-app --template typescript`というコマンドを実行します。`my-app`の部分には、プロジェクトに利用するフォルダ名を指定します。これで、最初からTypeScriptを利用可能なプロジェクトを簡単に作成できます。
171+
[Reactの公式Webサイト](https://reactjs.org/docs/static-type-checking.html#using-typescript-with-create-react-app)に書かれているように`npx create-react-app my-app --template typescript`というコマンドを実行します。`my-app`の部分には、プロジェクトに利用するフォルダ名を指定します。これで、最初からTypeScriptを利用可能なプロジェクトを簡単に作成できます。
174172

175173
```text
176-
npm i -g create-react-app
177174
npx create-react-app my-app --template typescript
178175
cd my-app
179176
npm start # または、yarn start

0 commit comments

Comments
 (0)