Docs update request: Forwarding multiple refs
オープン
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
Hello!
I have found a variety of resources on the web describing ways to forward multiple refs to a child component so they can be accessed by a parent component:
- https://dev.to/oussel/a-guide-for-refs-in-react-45l6#chapter-5
- https://stackoverflow.com/a/53818443/4558300
- https://thewebdev.info/2021/11/14/how-to-forward-multiple-refs-with-react/
- https://medium.com/swlh/refs-and-forward-refs-in-react-be5bcb86fc69
Would it be possible to add a section to the official docs which describes what is going on in these examples? I think that these examples use the behavior of useRef as described in the useRef docs, but I'm honestly not sure. I think an official example of this would be very helpful.
Thanks!
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、リンクされた例を、issue で参照されている React useRef ドキュメントと比較します。公式 Docs が ref に関するガイダンスをどのように構成しているかを確認し、複数の ref の転送を説明するセクションと例を追加します。完了の条件は、適切な React Docs に動作と例が明確に記載されていることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100