Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么我用Route渲染通过react-redux中connect方法产生的组件就报错? #112

Open
Er-shixiong opened this issue Jun 26, 2019 · 3 comments

Comments

@Er-shixiong
Copy link

No description provided.

@Er-shixiong
Copy link
Author

Home组件定义:
export default Home; // 这样是对的,
// export default connect(null, null)(Home); // 这样写就错了
Home组件使用:
<Route path='xxxx' component={ Home } />
报的错是:
TypeError: _render is not a function

@CXjason
Copy link

CXjason commented Aug 25, 2019

这个问题解决了吗

@githubWangc
Copy link

我也碰到这个问题了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants