treycordova/nativejsx

Error when using empty string in jsx template

asunar opened this issue · 1 comments

Transpiling and running the following template throws an error:

Uncaught DOMException: Failed to execute 'appendChildren' on 'Element': [object String] is not valid.

Is that the expected behavior?

function template() {
    var name = '';
  return (
        <div>{ name }</div>
  );
}

Fixed. It's in master now.