alert() not working in codepen, consider alternative onclick functions for tutorial
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
https://github.com/reactjs/reactjs.org/blob/master/content/tutorial/tutorial.md
At some part of this tutorial (um, line 238 of that md file), I was asked to give the squares an onclick function of alert("click"). However, apparently Chrome has blocked this from running in codepen (A different origin subframe tried to create a JavaScript dialog. This is no longer allowed and was blocked. See https://www.chromestatus.com/feature/5148698084376576 for more details.), and can be confusing to people.
The next best alternative for alert that I can think of is console.log, and logged messages can be seen in both the browser's console and codepen's console.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
tutorial/tutorial.md を 238 行目付近で開き、CodePen の例にある正方形の alert("click") ハンドラーを確認してください。console.log のような代替手段がブラウザーのコンソールと CodePen のコンソールの両方で機能することを検証してください。例がブロックされたダイアログをトリガーしなくなり、理解しやすい状態が保たれれば作業は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 38/100