Improve error messages for invalid element types (#8612)

This commit is contained in:
Ben Alpert
2016-12-21 13:17:34 -08:00
committed by GitHub
parent d47a3a36ee
commit eca5b1d48e
8 changed files with 141 additions and 58 deletions
+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