Documentation about Keys beyond usage in lists
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
The You Probably Don't Need Derived State post shows a pattern that uses the key prop to reset (force remount) elements in order to restart the component lifecycle: https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html#recommendation-fully-uncontrolled-component-with-a-key
It would be good to expand on that example in the main docs and discuss some of the pitfalls of that approach (for example, if a component is not written to account for changing data sources, the consumer must add a key to correctly reset the component).
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンク先の「You Probably Don’t Need Derived State」の記事と、key を使った完全に非制御のコンポーネントの例から始めてください。React のメインドキュメントの関連セクションを同等の例で更新し、リセット時の動作とデータソースを変更する際の落とし穴を説明してください。読者に使用方法と注意点が明確に伝われば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 2/5
- 見積もり時間
- 半日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100