treycordova / nativejsx

JSX to native DOM API transpilation. :yellow_heart: <div> ⟹ document.createElement('div')!
MIT License
154 stars 14 forks source link

Error when using empty string in jsx template #6

Closed asunar closed 8 years ago

asunar commented 8 years ago

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>
  );
}
treycordova commented 8 years ago

Fixed. It's in master now.