[Suggestion]: portals caveat
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
Summary
The problems solved by portals can also be solved by the dialog element, popover API and anchor positioning.
I think it is worth mentioning that on the page less people think the only approach is to use portals.
Page
https://react.dev/reference/react-dom/createPortal
Details
I wrote about it here: https://fullystacked.net/portal/
I don’t think native popovers are perfect. There will probably always be a need for this portal API, but I think the main example shouldn’t be a modal. That genuinely is better solved with the native HTML element.
I’m not suggesting a large new section, just a brief note to say there are other approaches.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Issue にリンクされている React DOM createPortal のリファレンスページを開き、モーダルの例とその周辺の説明を確認します。ダイアログ、ポップオーバー、アンカーのポジショニングをネイティブな代替手段として認める短い注記を追加し、その後、ページでポータルが唯一のアプローチではなく、選択肢の一つとして明確に示されていることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- html, react
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 55/100