0
1

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 5 years have passed since last update.

React初心者日記(2日目)

Posted at

どんな記事?

Reactをローカルで書けるようにする。
npmとかWindowsで動かないと思ってた。

参考ページ

[windowsでReactの環境構築] (https://qiita.com/KKoh/items/8aa1bf0bb3673e8e2455)
あとどこかのページ。
ここだった

正直参考ページに書かれたことやっただけ

コマンドプロンプトで
npx create-react-app my-app
create-react-app my-apps
現在のディレクトリにmy-appsフォルダができる
フォルダ内移動cd my-apps
サーバー起動npm start
なんかアクセス許可するかの選択すると
ブラウザでReactのロゴがぐるぐるしている。
そこに書いてある通りsrc/App.jsをいじると表示が変わる。

次やること

別のjsファイルからコード読み込む
参考になりそうなページ
【Q&A】ReactJSのComponentをimport,exportする

後でやること

Tomcat上で動かす。
参考になりそうなページ
Making a Progressive Web App (ただし英語)
Reactを使ってWebサイトを公開するまでの手順

思ったこと

英語読めたい

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?