Collapse JSX tag
Convert an empty JSX tag into a self-closing tag.

Why is this refactoring helpful?
Unnecessary closing elements (with potential whitespace) are additional text that needs to be read and understood. Self-closing elements make the code more concise.
Configuration
- Code Assist ID (for the configuration file):
collapse-jsx-element
- You can configure custom keyboard shortcuts with this code action kind:
refactor.convert.toggle.collapse-expand.jsx-element.p42.collapse-jsx-element
- This code assist provides refactoring suggestions. Learn how to configure the refactoring suggestion visibility.