Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

Rendering of false #22

Closed
brlewis opened this issue Jun 9, 2016 · 2 comments
Closed

Rendering of false #22

brlewis opened this issue Jun 9, 2016 · 2 comments

Comments

@brlewis
Copy link

brlewis commented Jun 9, 2016

In JSX one can use {myBoolean && <MyComponent />} for conditional rendering of a component. In MSX the false case renders as "false".

JSX behavior: https://jsfiddle.net/9creowqL/

It would be convenient to render false as the empty string, the way null and undefined are already rendered.

Would you accept a pull request if I put one together?

@brlewis
Copy link
Author

brlewis commented Jun 9, 2016

Actually this is more likely to be a Mithril issue: MithrilJS/mithril.js#1014

If so feel free to close this.

@insin
Copy link
Owner

insin commented Jun 9, 2016

This is a Mithril issue, indeed 👍

@insin insin closed this as completed Jun 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants