treycordova / nativejsx

JSX to native DOM API transpilation. :yellow_heart: <div> ⟹ document.createElement('div')!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when using empty string in jsx template

asunar opened this issue · comments

commented

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.