Objects are not valid as a React child2018-04-15 22:15

Objects are not valid as a React child

Objects are not valid as a React child (found: object with keys {a, b}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.

关键词: combineReducers()

应该就是使用了这个函数(返回了一个包含多个Reducer结果的Obj),然后在取state的时候直接取出来了,还没有取对应的子数据

Powered by Remix
|
Designed by szhshp
|
Copyright © szhshp 2022