dillon1000/react

Commit

Continue warning if a Map is rendered as a child

The entries of a map are a two-element array of [key, value], which
React will treat as fragments with children. This is unlikely to ever
be the intended behavior, so we warn.
Browse files
Changed paths4 files
First-parent comparison
M scripts/fiber/tests-passing.txt ModifiedM src/renderers/shared/fiber/ReactChildFiber.js ModifiedM src/renderers/shared/shared/__tests__/ReactMultiChild-test.js ModifiedM src/shared/utils/traverseAllChildren.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…