ampproject / ampproject/amp-react-prototype
Exporter
- 主要言語
- JavaScript
- スター
- 36
- フォーク
- 6
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Most of AMP elements have standard "public" state, including:
- isBuilt
- isLoaded
- loadedPromise
- etc
And also AMP elements have some imperative APIs such as:
- executeAction
- unlayout
- pause/resume
The two questions are:
1. How to export these APIs to AMP framework.
2. Whether and how to export these APIs to React layer.
For imperative API exporting we can use [forwardRef](https://reactjs.org/docs/forwarding-refs.html) and [useImperativeHandle](https://reactjs.org/docs/hooks-reference.html#useimperativehandle). We need to be careful with such APIs however - changing their shape has to follow backward-compatibility rules.
コントリビューションガイド
調査の方向性
まず、issue に列挙されている AMP 要素の状態と命令型 API を確認し、次に React の forwardRef と useImperativeHandle のドキュメントを比較します。後方互換性を維持しながら、API を AMP フレームワークと React レイヤーにどのようにエクスポートするかを定義してください。issue にはファイルやテストの記載はありません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- frontend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100