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

this.refs not transformed to this.$refs and ref callbacks don't work #15

Open
nlieb opened this issue Jul 31, 2017 · 0 comments
Open

this.refs not transformed to this.$refs and ref callbacks don't work #15

nlieb opened this issue Jul 31, 2017 · 0 comments

Comments

@nlieb
Copy link

nlieb commented Jul 31, 2017

As in the title, the React this.refs is not transformed to the equivalent Vue this.$refs.

Also, ref callbacks do not work (ie the api replacing string refs https://facebook.github.io/react/docs/refs-and-the-dom.html#legacy-api-string-refs). This is important since ref strings are removed in React 16.x

For example this common React idiom won't work: <canvas ref={c => this.canvasRef = c} />

Fantastic idea and work so far. If I have time I'll try and get a pull request in.

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