dillon1000/react

Commit

Prevent NaN props from triggering warnings

Previously, `checkAndWarnForMutatedProps` would flag `NaN` props as
having been mutated, because `NaN !== NaN`. This prevents that warning
from being emitted by explicitly checking for `NaN`s.
Browse files
Changed paths1 file
First-parent comparison
M src/classic/element/ReactElementValidator.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…