You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Components without children can be self-closed to avoid unnecessary extra closing tag. Example - The not-preferred way : jsx var HelloJohn = <Hello name="John"></Hello>; var HelloJohnCompound = <Hello.Compound name="John"></Hello.Compound>; 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.
Description
Components without children can be self-closed to avoid unnecessary extra closing tag. Example - The not-preferred way :
jsx var HelloJohn = <Hello name="John"></Hello>; var HelloJohnCompound = <Hello.Compound name="John"></Hello.Compound>;
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/
The text was updated successfully, but these errors were encountered: