Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: nameless closing tags #152

Open
jedwards1211 opened this issue Nov 3, 2022 · 0 comments
Open

Feature request: nameless closing tags #152

jedwards1211 opened this issue Nov 3, 2022 · 0 comments

Comments

@jedwards1211
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant