Why you did not mention the name of empty wrapper?
オープン
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
Link
https://beta.reactjs.org/learn#writing-markup-with-jsx
In this paragraph you wrote :
JSX is stricter than HTML. You have to close tags like <br />. Your component also can’t return multiple JSX tags. You have to wrap them into a shared parent, like a <div>...</div> or an empty <>...</> wrapper:
I"d recommend to add the name of the empty Wrapper Fragment and provide the two version of it:
function AboutPage() {
return (
<Fragment>
<h1>About</h1>
<p>Hello there.<br />How do you do?</p>
</Fragment>
);
}
The shortcut:
function AboutPage() {
return (
<>
<h1>About</h1>
<p>Hello there.<br />How do you do?</p>
</>
);
}
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンク先のReact Learnページを開き、「JSX is stricter than HTML.」で始まる段落を見つけてください。Fragmentに言及し、Fragmentの明示的な構文と空タグの省略構文の両方を示すように更新してください。ページに既存のwrapperの説明とともに両方の形式が明確に示されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 35/100