dillon1000/react

Commit

Protect better against createElement(null/undefined)

This adds a warning to React.createElement in __DEV__ about using null
or undefined. This is technically valid since element creation can be
considered safe and usable in multiple rendering environments. But
rendering in a DOM environment with an element with null/undefined type
is not safe.
Browse files
Changed paths3 files
First-parent comparison
M src/classic/element/ReactElement.js ModifiedM src/classic/element/ReactElementValidator.js ModifiedM src/classic/element/__tests__/ReactElementValidator-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…