Skip to content

Commit

Permalink
Improve title in void-dom-elements-no-children.md
Browse files Browse the repository at this point in the history
Add the name of the rule in parentheses at the end of Markdown title like in other documentation files.
  • Loading branch information
omerzach committed Mar 21, 2017
1 parent b9cfdd6 commit a485466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/void-dom-elements-no-children.md
@@ -1,4 +1,4 @@
# Prevent void DOM elements (e.g. `<img />`, `<br />`) from receiving children
# Prevent void DOM elements (e.g. `<img />`, `<br />`) from receiving children (react/void-dom-elements-no-children)

There are some HTML elements that are only self-closing (e.g. `img`, `br`, `hr`). These are collectively known as void DOM elements. If you try to give these children, React will give you a warning like:

Expand Down

0 comments on commit a485466

Please sign in to comment.