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 => (
)) }
);
`
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。