https://github.com/kazuma1989/trial-react-18
https://github.com/kazuma1989/trial-react-18
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kazuma1989/trial-react-18
- Owner: kazuma1989
- Created: 2021-10-20T08:59:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-20T09:34:45.000Z (over 3 years ago)
- Last Synced: 2025-01-22T09:33:06.706Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 506 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React 18 Example

ビルドして使うには次のコマンドを実行してください。10 秒ほどでインストールとビルドが終わります。
```console
npm install
npm run build
```できあがった `build/` ディレクトリをドキュメントルートとして Web サーバーから見れば OK です。
## 利用可能なスクリプト
### `npm start [-- --no-open]`
アプリを開発モードで起動します。ブラウザーが起動して http://localhost:3000 が表示されます。
ブラウザーを起動したくないときは `-- --no-open` オプションを渡してください。ソースコードを編集するとページがリロードします。
TypeScript による型検査は別コンソールで実行してください。
### `npm run build`
アプリを静的資材として `build/` ディレクトリにコピーします。
そのディレクトリをデプロイすれば OK です!### `npm run format`
ソースコードを整形します。
## IDE
IDE は Visual Studio Code が推奨です。必要な拡張機能をすぐインストールできるようにしてあります。