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

Workaround for class component refs #105

Closed

Conversation

volkanceylan
Copy link
Contributor

As noted in the issue #104, attachRef is not called anywhere in jsx-dom code for class components unless I am missing something. In React/Preact refs are called during mounting, but no such phase exists in jsx-dom. So I think attachRef should be called in initClassComponent method.

@alex-kinokon
Copy link
Owner

Thanks

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

Successfully merging this pull request may close these issues.

2 participants