render nothing if the param is the number zero
Aperta
- Lingua principale
- JavaScript
- Stelle
- 814
- Fork
- 37
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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 => (
)) }
);
`
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.