SIGN IN SIGN UP

Fix a mistake in ReactChildren refactor (#18380)

* Regression test for map() returning an array

* Add forgotten argument

This fixes the bug.

* Remove unused arg and retval

These aren't directly observable. The arg wasn't used, it's accidental and I forgot to remove. The retval was triggering a codepath that was unnecessary (pushing to array) so I removed that too.

* Flowify ReactChildren

* Tighten up types

* Rename getComponentKey to getElementKey
D
Dan Abramov committed
6498f62edcdf0bcc02ed96efdad92b7e89330d8a
Parent: 2ba43ed
Committed by GitHub <noreply@github.com> on 3/25/2020, 9:20:46 AM