dillon1000/react

Commit

Update inaccurate mapChildren comment (#18931)

The function you provide will only be passed a child and an index. It will not be passed a key. This is confirmed in the source, the Flow types, and the jsdoc comments.
Browse files
Changed paths1 file
First-parent comparison
M packages/react/src/ReactChildren.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…