React 源码解析-Part1. React.Children 之 map 可以看到这个里面处理了 children 为空的时候的情况,直接返回该 children。然后调用了一个 mapIntoWithKeyPrefixInternal 方法, 下面来看看这个方法的实现。 少年阿涛 2019-09-24 07:00:06