react 中components 中的组件无法引入 container 中的组件

在使用react+ redux 中,所有在 components 中的组件都只是单纯渲染的组件,在 container 中都是使用redux 的 connect 的组件。

现在在 components 中的组件,引入 container 中的组件,会报如下的错误。但是如果把该组件放在 components 下,但是还是使用了 Redux 的 connect ,就不会有以下的问题。

想请教下是为什么?

Uncaught Error: Component(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
阅读 996
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题