Self-closing component tags
See original GitHub issueHow about allowing self-closed component tags like <my-component />
? Currently, it does not work.
Issue Analytics
- State:
- Created 8 years ago
- Comments:21 (8 by maintainers)
Top Results From Across the Web
Self-Closing Tag | React
All tags must be closed, either with the self-closing format or with a corresponding closing tag ... Every React component can be self-closing:...
Read more >React component closing tag - Stack Overflow
The purpose of self-closing tags is simply the fact that it is more compact. This is especially useful when said component doesn't have...
Read more >Self-closing component tags (<my-comp/> instead of ... - GitHub
There is an existing issue for this, #673, but it was closed due to inactivity. That issue got half-rejected (it was not resolved)...
Read more >List of HTML Self-Closing Tags - Xah Lee
Last updated: 2022-03-15 . Here is a complete list of self-closing tags for HTML5. These are called void-elements in HTML spec. <area ...
Read more >Self-closing tags - HTML - Simple Dev
A self-closing tag is made of an element's symbol wrapped in angle brackets. It does not require a forward slash. Elements that use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Vue templates need to be valid HTML. There are no “self closing tags” in HTML5, it’s an XHTML syntax which is now outdated and you should never use it. See http://stackoverflow.com/questions/3558119/are-self-closing-tags-valid-in-html5
@harbulot FYI self-closing tags works in 2.0 as long as you don’t use in-dom templates.