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

Stateless function components cannot be given refs ? #338

Closed
zhump opened this issue Nov 30, 2016 · 1 comment
Closed

Stateless function components cannot be given refs ? #338

zhump opened this issue Nov 30, 2016 · 1 comment

Comments

@zhump
Copy link

zhump commented Nov 30, 2016

用dva推荐的写法 就不能用 ref 了吗?

warning.js:36 Warning: Stateless function components cannot be given refs (See ref "0" in Example created by AddRemoveLayout). Attempts to access this ref will fail.

reduxjs/react-redux#141

@zhump zhump closed this as completed Nov 30, 2016
@pimkle
Copy link

pimkle commented Jun 30, 2017

需要ref啊

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

2 participants