Skip to content

Commit

Permalink
Merge pull request #1121 from omerzach/patch-2
Browse files Browse the repository at this point in the history
[docs] Improve title in void-dom-elements-no-children.md
  • Loading branch information
ljharb committed Mar 22, 2017
2 parents 3d64b67 + a485466 commit 9bb68c1
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 9bb68c1

Please sign in to comment.