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

React ref打印出来的为什么是null #12

Open
lovelmh13 opened this issue Feb 8, 2020 · 0 comments
Open

React ref打印出来的为什么是null #12

lovelmh13 opened this issue Feb 8, 2020 · 0 comments

Comments

@lovelmh13
Copy link
Owner

在用受控组件的时候,在antd的组件上,使用ref,打印出来的null,后来发现,把{...getfieldProps}放到ref属性前就可以打印出来ref了。但是为什么还不知道,需要进一步研究

@lovelmh13 lovelmh13 changed the title ref打印出来的为什么是null React ref打印出来的为什么是null Feb 8, 2020
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

1 participant