Skip to content

Feature request: nameless closing tags #152

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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