developit / developit/vhtml

render nothing if the param is the number zero

オープン
#37 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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:



    { items.map( item => (
  • { 1 }

  • )) }


);
`

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。