render nothing if the param is the number zero
オープン
- 主要言語
- JavaScript
- スター
- 814
- フォーク
- 37
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
In react, the number zero will be rendered directly, rather than taken as false or null.
`let items = ['one', 'two', 'three'];
document.body.innerHTML = (
Hi!
Here is a list of {items.length} items:
- { 1 }
{ items.map( item => (
)) }
);
`
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Reproduce the JSX example from the issue, focusing on the expression that renders the number zero inside the list. Trace the rendering entry point used by vhtml and verify that zero is omitted while the other values still render; the payload names no source file or test to run.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100