wix-incubator / react-templates

Light weight templates for react
https://wix.github.io/react-templates
MIT License
2.82k stars 206 forks source link

Non breaking space ( ) discarded #151

Closed nippur72 closed 8 years ago

nippur72 commented 8 years ago

Non breakable space   is discarded if it appears alone in a text element:

<div>
  <div>&#160;</div>
  <div>&#160;Hello</div>
</div>
var templateRT = function () {
    return React.createElement('div', {}, 
        React.createElement('div', {}),  // <--------- where's '\xA0' ???
        React.createElement('div', {}, '\xA0Hello'));
};