Skip to content

React 宣言的なUIの説明の追加#932

Open
Yokomi422 wants to merge 3 commits intomainfrom
react-session-declarative-ui
Open

React 宣言的なUIの説明の追加#932
Yokomi422 wants to merge 3 commits intomainfrom
react-session-declarative-ui

Conversation

@Yokomi422
Copy link
Contributor

@Yokomi422 Yokomi422 commented Feb 28, 2026

変更点

  • 宣言的UIを説明するための具体的な状態を持つTODOアプリの画像およびその説明を追加

画像 v1
declarative-ui drawio

画像 v2

  • 上のStateA, StateBを状態A, 状態Bに変更
  • 図をタイトにした
    declarative-ui-2 drawio

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 28, 2026

Deploying utcode-learn with  Cloudflare Pages  Cloudflare Pages

Latest commit: 823e766
Status: ✅  Deploy successful!
Preview URL: https://01850df6.utcode-learn.pages.dev
Branch Preview URL: https://react-session-declarative-ui.utcode-learn.pages.dev

View logs

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

おそらくv1の画像が使われていそうです。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let stateconst stateの方が適切かと思います。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コードのフォーマットがPrettierに準拠していないため、Prettierのフォーマットに準拠したフォーマットとすると良いかと思います。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

細かいですが、特に理由がなければ、removeよりもaddを使用した方がわかりやすいかと思います。というのも、基本的にremoveよりもaddの方が実装しやすくより単純だからです。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo List → ToDoリスト

などにした方が良いかと思います。(TodoではなくToDoの方がよく使われる表記であり、さらに日本語にした方がわかりやすい)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToDoリストのUIの図のレイアウトが少し崩れているので、グリッドを使用して揃えるとよいかと思います。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

全体的に不必要に文字サイズが小さい(あるいは図の横幅が不必要に大きい)ところがあるので、適切な大きさにすると良いかと思います。また、同じ意味論を持つテキストに対して別の文字サイズが使われているため、それぞれのテキストの意味に応じた文字サイズにすると良いかと思います。(タイトルは〇〇px, 地の文は〇〇pxなどのように揃えるイメージです。)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

状態からUIへ向かう矢印の大きさと位置が左右で異なるので、揃えるとよいかと思います(グリッドを用いて合わせるとよいかと思います)。また、矢印の始点と終点の位置も見やすいように調整するかと良いと思います。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removeを表す矢印が左側の箱(すなわち、状態とUIの両方を含んだもの)から右側の箱に向かっており、左側の状態 + UIから右側の状態 + UIに向かう矢印となってしまっています。状態から状態へと向かう矢印という意味を表したいはずなので、食い違ってしまっているように思います。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

テキストでの説明に合わせて、

render() → render関数

のようにするとよいかと思います。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants