update-unknown-warning-page - add a reason for the warning (#8131)
* update-unknown-warning-page - add a reason for this warning * Minor tweaks
Damien Soulard committed
Oct 31, 2016 at 14:01 UTC
f53854424b33692907234fe7a1f80b888fd80751
1 file changed
+2
docs/warnings/unknown-prop.md
+2
@@ -13,6 +13,8 @@ There are a couple of likely reasons this warning could be appearing:
13
14
3. React does not yet recognize the attribute you specified. This will likely be fixed in a future version of React. However, React currently strips all unknown attributes, so specifying them in your React app will not cause them to be rendered.
15
16
+4. You are using a React component without an upper case. React interprets it as a DOM tag because [React JSX transform uses the upper vs. lower case convention to distinguish between user-defined components and DOM tags](/react/docs/jsx-in-depth.html#user-defined-components-must-be-capitalized).
17
+
18
---
19
20
To fix this, composite components should "consume" any prop that is intended for the composite component and not intended for the child component. Example: