dillon1000/react
Commit
Browse files 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.
Changed paths3 files
First-parent comparisonsrc/classic/element/ReactElement.js ModifiedM src/classic/element/ReactElementValidator.js ModifiedM src/classic/element/__tests__/ReactElementValidator-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…