Skip to content

Feature request: nameless closing tags #152

@jedwards1211

Description

@jedwards1211

I wish I didn't have to write the name in closing tags:

<div>
  <Foo>
    ...
  </>
</>

To me it's just a waste of time. I know IDEs can help with closing tags but such features always get in the way (for example, automatically inserting a closing tag when I'm typing generic type parameters).

So, how about just encouraging Babel/TS to adopt </> as a valid syntax for closing any open tag?

This may be a difference from XML, but so what; the <></> fragment syntax is already not valid XML AFAIK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions