Skip to content

Commit

Permalink
Merge pull request #745 from petersendidit/self-closing-comp-docs
Browse files Browse the repository at this point in the history
Update self-closing-comp doc to show example of a intentional space
  • Loading branch information
lencioni committed Aug 7, 2016
2 parents 1b6cef9 + 0461e3c commit c0038f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/rules/self-closing-comp.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ The following patterns are not considered warnings:
```js
var contentContainer = <div className="content"></div>;

var intentionalSpace = <div>{' '}</div>;

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

var Profile = <Hello name="John"><img src="picture.png" /></Hello>;

var HelloSpace = <Hello>{' '}</Hello>;
```

## Rule Options
Expand Down

0 comments on commit c0038f9

Please sign in to comment.