lukejacksonn / ijk

Transforms arrays into virtual dom trees; a terse alternative to JSX and h
MIT License
467 stars 17 forks source link

Number 0 is not being rendered #8

Closed gwn closed 6 years ago

gwn commented 6 years ago

The expression ['p', 0] does not render anything, whereas ['p', String(0)] works.

lukejacksonn commented 6 years ago

Great spot, thanks! Here is a PR https://github.com/lukejacksonn/ijk/pull/9 with the fix. I have included tests 🙇