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

(JS-0468) Prevent extra closing tags for components without children #146

Open
opticSquid opened this issue May 29, 2021 · 0 comments
Open

Comments

@opticSquid
Copy link
Owner

Description

Components without children can be self-closed to avoid unnecessary extra closing tag. Example - The not-preferred way : jsx var HelloJohn = &lt;Hello name=&quot;John&quot;&gt;&lt;/Hello&gt;; var HelloJohnCompound = &lt;Hello.Compound name=&quot;John&quot;&gt;&lt;/Hello.Compound&gt;; Example - The preferred way : ```jsx var contentContainer = <div className="content"></div>; var intentionalSpace = <div>{' '}</div>; var HelloJohn = …

Occurrences

There are 26 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/soumalyatheking22012001/IIC-Covid-Help/issue/JS-0468/occurrences/

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