Closed fritx closed 8 years ago
why the children list have an object which is not vaild(react element
、react component
、string
)
@Lucifier129 oh that's an Immutable
object written by my partner.
I fixed it when I changed {list.map(xxxx)}
to {list.map(xxxx).toJS()}
.
In react, it works without the fix. Maybe react would call it automatically?
I'm not sure.
Maybe react-lite can also do it for us!
Btw, awesome work on react-lite!
@fritx thank you.
react-lite has no plan to support that tansformImmutable
object to native data structure as automatic, such as I think React.createClass with autobind has bad smell
, it's hard to distinguish native data/immutable data
and autobind method/normal method
sorry about that.
No problem! I'm closing this as it is fixed ;)
It breaks when an
Object
appears