Lucifier129 / react-lite

An implementation of React v15.x that optimizes for small script size
MIT License
1.73k stars 98 forks source link

Uncaught Error: must set key for <rc-animate> children #106

Closed ChieveiT closed 7 years ago

ChieveiT commented 7 years ago

Throw this when using ant-design's Table component but after I fallback to react everything works fine.

I have compared react-lite and react in this situation and found react normalizes every child in Children.forEach.

Code in react:

// function traverseAllChildrenImpl
var type = typeof children
if (type === 'undefined' || type === 'boolean') {
    // All of the above are perceived as null.
    children = null
}