Skip to content

Commit 9bb68c1

Browse files
authored
Merge pull request #1121 from omerzach/patch-2
[docs] Improve title in void-dom-elements-no-children.md
2 parents 3d64b67 + a485466 commit 9bb68c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/void-dom-elements-no-children.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Prevent void DOM elements (e.g. `<img />`, `<br />`) from receiving children
1+
# Prevent void DOM elements (e.g. `<img />`, `<br />`) from receiving children (react/void-dom-elements-no-children)
22

33
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:
44

0 commit comments

Comments
 (0)