[Suggestion]: `forwardRef` is a legacy api, so should it be removed from where it's used?
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
Summary
As above, in docs, there are still several references of forwardRef. It is suggested that we should remove them or replace them by a new way.
Page
No response
Details
I find out some pages(there may be more):
Accessing another component’s DOM nodes, the example in this section doesn't encounter error any more.
useImperativeHandle, there're a lot of forwardRef.
I can’t get a ref to a custom component, this doesn't encounter error neither.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされている次の3つのドキュメントセクションから始めます: “Accessing another component’s DOM nodes,” useImperativeHandle、および “I can’t get a ref to a custom component.” 現在の説明と例を確認し、どの forwardRef への参照が古くなっているか、またどの置き換えの説明が意図されているかを判断します。対象ページが合意された現在の API ガイダンスを一貫して反映し、古い参照が残っていなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100