dillon1000/react

Commit

Improve readability of isValidElementType (#19251)

* improve readability

* replace condition by switch/case

* replace condition by switch/case

* remove unnecessary braces

* replace switch/case to ifs

* replace switch/case to ifs

* fix by multiline if statements

* fix multiple if statements
Browse files
Changed paths1 file
First-parent comparison
M packages/shared/isValidElementType.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…