reactjs / reactjs/react.dev

Better to mention closure here

オープン
#6,294 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
JavaScript
スター
11.8k
フォーク
7.9k
平均マージ
1日 11時間
マージ済み PR(30日)
11

説明

In https://react.dev/learn/state-as-a-snapshot#state-over-time

It is said that

The state stored in React may have changed by the time the alert runs, but it was scheduled using a snapshot of the state at the time the user interacted with it!

it is better to indicate that technically, it is due to closure, so that people who understand closure and know it is due to that, or to people who don't understand closure, get some exposure to closure.

The phrase "it was scheduled using a snapshot of the state at the time the user interacted with it!" is cool, but ultimately, it is closure that explains it.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リンク先の「State Over Time」セクションにあるState as a Snapshotページを開き、alertの例について周囲にある説明を読んでください。スナップショットの説明を維持しながらclosuresの役割に触れるように文言を修正し、そのうえで、更新後のテキストがJavaScriptの知識レベルが異なる読者にも明確に伝わることを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, react
領域
documentation
issue の種類
ドキュメント
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。