Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Support for React.createRef() refs passed to innerRef #102

Closed
Carnewal opened this issue May 8, 2018 · 7 comments
Closed

Support for React.createRef() refs passed to innerRef #102

Carnewal opened this issue May 8, 2018 · 7 comments
Labels

Comments

@Carnewal
Copy link

Carnewal commented May 8, 2018

React has a new way of creating refs; https://reactjs.org/docs/refs-and-the-dom.html

When passing a createRef()'d ref to the innerRef prop, an "innerRef is not a function" error is thrown.

@gausie
Copy link

gausie commented May 16, 2018

Using this new export is the solution https://reactjs.org/docs/forwarding-refs.html

@sirreal
Copy link

sirreal commented Dec 6, 2018

@FrancescoCioria Could you elaborate on why this was closed?

@gnapse
Copy link

gnapse commented Dec 28, 2018

@FrancescoCioria I have the same question. Now with hooks this is more salient.

@FrancescoCioria
Copy link
Contributor

sorry my mistake, this issue was not supposed to be closed

@alexlouden
Copy link

Gave this a shot - contributions welcome! #124

@FrancescoCioria
Copy link
Contributor

Finally we're supporting the new React.createRef() 🎉
You can give it a shot with v7.0.0 (I've treated it as a breaking release as React suggests)

@tommedema
Copy link

I'm still getting this in 7.0.0: #141

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

No branches or pull requests

7 participants