Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/frontend/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ footer: CC BY-SA Licensed | Copyright (c) 2020, Internet Initiative Japan Inc.
title: Reactでシングルページアプリケーションを書こう
description: Reactでシングルページアプリケーションを書こう
time: 2h
prior_knowledge: 特になし
prior_knowledge: JavaScript, TypeScript, HTML, DOM, Docker
---

<header-table/>
Expand Down Expand Up @@ -524,6 +524,9 @@ Reactのコンポーネントは`componentDidMount`のようにいくつかの

説明すると長くなりますし「習うより慣れよ」な仕組みなため、たくさんコードを書いて理解してください。

ブラウザでは[fetch](https://developer.mozilla.org/ja/docs/Web/API/Fetch_API)という関数を使ってサーバへのリクエストを送ります。
fetchも`Promise`を利用しているため、`Promise`に慣れておくと、リクエストの結果をReactで描画するという、実践的なアプリケーションを書けるようになります。

:::

#### チェックポイント
Expand Down