Document Controlled vs Uncontrolled Component Design pattern
オープン
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
pursuant to this discussion https://twitter.com/dan_abramov/status/1001943857096003584
all react components can be:
- controlled (no internal state)
- uncontrolled (internal state)
- mixed (uncontrolled by default, unless some props are passed to make it controlled)
the current docs on controlled vs uncontrolled: https://reactjs.org/docs/uncontrolled-components.html focus entirely on forms, but this design pattern applies to -all- components. we should document this.
questions
- What else should we say in the docs?
- do we want to tell people that they can do "mixed control" or do we leave that for people to discover for themselves?
- is this the same page as https://reactjs.org/docs/uncontrolled-components.html or is it a separate page?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
既存の uncontrolled-components.html ドキュメントとリンク先のディスカッションから始めます。controlled, uncontrolled, and mixed component patterns をこのページに置くべきか、別のページに置くべきかを判断し、ドキュメントで提供すべきガイダンスを決定します。選択したドキュメントがフォーム以外のパターンも明確にカバーし、スコープに関する未解決の質問に答えられれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100