dillon1000/react

Commit

[React Children] Step Two: Use `traverseChildren` to perform `mapChildren`

Use the new `traverseChildren` utility to perform `mapChildren`.
The goal is to get as close to the bavior of the semantics of
`Array.prototype.map`, but also in a way that understands deeply nested arrays
and objects.
Browse files
Changed paths4 files
First-parent comparison
A src/utils/__tests__/mapAllChildren-test.js AddedD src/utils/__tests__/mapChildren-test.js DeletedA src/utils/mapAllChildren.js AddedD src/utils/mapChildren.js Deleted
Patch

Files changed

Rendering syntax-highlighted changes…