Docs: not being accurate in one of faq examples
オープン
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
In a Passing Function to Components page in FAQ section. There is an example that claims that two functions are equivalent which is not so accurate.
<button onClick={() => this.handleClick(id)} />
<button onClick={this.handleClick.bind(this, id)} />
- The first one only receives the
id - the second will receive Synthetic click event as the second argument beside
id
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
FAQ の「Passing Function to Components」ページを開き、「How do I pass a parameter to an event handler or callback?」の下にある例を確認してください。各形式の handler が受け取る引数を正確に説明するよう解説を更新し、そのうえで、例と周囲のテキストが2つの関数は完全に同等であると主張しなくなっていることを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100