Skip to content

Commit 6f51dbe

Browse files
committed
docs: fix self-closing component examples
Signed-off-by: ColumbusLabs <287001685+ColumbusLabs@users.noreply.github.com>
1 parent c9a2de7 commit 6f51dbe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/rules/self-closing-comp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Components without children can be self-closed to avoid unnecessary extra closin
1313
Examples of **incorrect** code for this rule:
1414

1515
```jsx
16+
var contentContainer = <div className="content"></div>;
17+
1618
var HelloJohn = <Hello name="John"></Hello>;
1719

1820
var HelloJohnCompound = <Hello.Compound name="John"></Hello.Compound>;
@@ -21,8 +23,6 @@ var HelloJohnCompound = <Hello.Compound name="John"></Hello.Compound>;
2123
Examples of **correct** code for this rule:
2224

2325
```jsx
24-
var contentContainer = <div className="content"></div>;
25-
2626
var intentionalSpace = <div>{' '}</div>;
2727

2828
var HelloJohn = <Hello name="John" />;

0 commit comments

Comments
 (0)