0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

React開発を始める

0
Posted at

はじめに

React開発の始め方をアウトプットします.

1. Node.jsのインストール

ReactはJavaScriptのライブラリのため,JavaScriptを実行するための環境構築として,Node.jsをインストールする.
公式ページから奨励版をダウンロード.ダウンロードしたファイルを実行することで,インストールできる.

2. npx create-react-app ディレクトリ名

ターミナル(windowsの場合はコマンドプロンプトやpowershell)でnpx create-react-app ディレクトリ名と打つことで,指定したディレクトリ名のReact環境が構築される.
ディレクトリ内に生成されたApp.jsx内に,jsx記法で記述していく.

3. npm start

ターミナルでcdコマンドを使い,React開発ディレクトリに移動し,npm startコマンドを実行.プロジェクトが実行され,現在の状態を確認することができる.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?