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
Use React 16's forwardRef for most/all components #1082
Comments
I'm all for this, but it will be a breaking change since it will change the require version of react needed as a peerDep. |
If adding |
True. You could put |
@TheSharpieOne when would you accept a PR for this breaking change? I keep coming up against this cause I want to attach refs to things that often turn out to be stateless components. I'd be open to making a PR to apply the change as well. We might be able to keep It's a shame that 16.3 was introduced not 6 days after #916 dropped support for versions below 16. :( |
@seansfkelley there is a v7 branch, make PRs with breaking changes to that branch, eventually it will be merged and released. |
@TheSharpieOne looks like I just missed the chance to get into v7, but I just opened #1356 for the nest release. |
|
Yes, it would be nice to get forwardRef into the next major release. This missed v7 as well as v8 |
@TheSharpieOne Now I'm working on reactjs/react-transition-group#559 to migrate from deprecated |
Any updates on this issue? |
reactstrap is a perfect use-case for React 16's new
forwardRef
API. Since most components in this library have predictable and well-defined DOM they produce, it would be very useful to have them forward their refs along to the underlying elements so consumers like myself don't have to wrap access inReactDOM.findDOMNode
when we want to e.g. implement a scroll-related feature.The text was updated successfully, but these errors were encountered: