dillon1000/react
Commit
Browse files Issue#11510: added verification check for misspelled propTypes (#11524)
* added verification check for misspelled propTypes * added flag to check if misspelled warning was shown to developer before * added the condition to else if and improved the warning message * moved variable under dev section & initialized it to false * added test to confirm the missmatch prop type warning in both and tests files * removed eslint disable and split error into 2 lines * changed expectDev to expect in tests * added __DEV__ condition before both tests
Changed paths3 files
First-parent comparisonpackages/react/src/ReactElementValidator.js ModifiedM packages/react/src/__tests__/ReactElementValidator-test.js ModifiedM packages/react/src/__tests__/ReactJSXElementValidator-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…