Improve error messages for invalid element types (#8612)

This commit is contained in:
Ben Alpert authored and GitHub committed 2016-12-21 13:17:34 -08:00
1 parent d47a3a36ee
commit eca5b1d48e
8 files changed
+141 -58

No files matched your search

+1 -1
View File
@@ -286,7 +286,7 @@ src/isomorphic/classic/element/__tests__/ReactElementValidator-test.js
* does not warn when the element is directly in rest args
* does not warn when the array contains a non-element
* should give context for PropType errors in nested components.
* gives a helpful error when passing null, undefined, boolean, or number
* gives a helpful error when passing invalid types
* should check default prop values
* should not check the default for explicit null
* should check declared prop types