Skip to content

leading   won't compile with JSX #693

@gfodor

Description

@gfodor

I get an error when trying to load this simple component. This seems to be due to the fact that the only text in the body of the div is an  . Adding any real text causes the issue to go away.

/** @jsx React.DOM */

var TestComponent = React.createClass({
  render: function() {
    return (
      <div>
        &nbsp;
      </div>
    );
  }
});


React.renderComponent(
  <TestComponent />,
  document.getElementById('content')
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions