dillon1000/react

Commit

Deduplicate logic in ReactElementValidator

Shouldn't be much change. Notably, this calls `.getName()` instead of trying to derive it manually, which is more consistent.
Browse files
Changed paths3 files
First-parent comparison
M src/isomorphic/classic/element/ReactElementValidator.js ModifiedM src/isomorphic/classic/element/__tests__/ReactElementValidator-test.js ModifiedM src/isomorphic/modern/element/__tests__/ReactJSXElementValidator-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…