dillon1000/react

Commit

Make React.Children.map do one pass only

Changed: createFragment no longer includes nulls in its output (since toArray doesn't and they share code).

Changed: React.Children.map no longer warns for clashing keys; traverseAllChildren will later when rendering.

Also change the generated key format around to accomodate. My keys are probably not bulletproof but should definitely be safe against accidental collisions.
Browse files
Changed paths4 files
First-parent comparison
M src/addons/ReactFragment.js ModifiedM src/isomorphic/children/ReactChildren.js ModifiedM src/isomorphic/children/__tests__/ReactChildren-test.js ModifiedM src/shared/utils/__tests__/traverseAllChildren-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…