mapStateToProps() in Connect(comp) must return a plain object.

报错详情:

warning.js?d95f:10 mapStateToProps() in Connect(EditorAttributes) must return a plain object. Instead received undefined.

报错代码片段:

connect((state) => state.app2)(comp);

原因:
mirrorx name 是'app1', 由于复制代码忘记改导致报错
改成
connect((state) => state.app1)(组件名);

推荐阅读更多精彩内容