Skip to content

Self-closing tags and custom components #79

@ischenkodv

Description

@ischenkodv

I'm trying to convert HTML with my custom component named "Data". It looks like this:

<div>
  <br/>
  <Data name="foo"/>
  <p>After</p>
</div>

As I result I get the following JSX in which the paragraph becomes the child of a Data tag and the tag itself is lowercased:

var MyTemplate = React.createClass({
  render: function() {
    return (

      <div>
        <br />
        <data name="foo">
          <p>After</p>
        </data></div>
    );
  }
});

Is this an expected behaviour?

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