Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.1k views
in Technique[技术] by (71.8m points)

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.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...