-
Notifications
You must be signed in to change notification settings - Fork 149
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
setup innerRef prop #81
Comments
Error: Unknown prop |
what would you think about migrating to |
@kelly-tock hey. This issue has been closed a while. Is there an issue you're running into specifically? As an aside, I'm thinking about dropping the component, |
No issue specifically, I have it working It’s just the now preferred way for refs like inner ref. Please don’t drop the component I think it’s great to provide both. |
I genuinely appreciate the feedback. It is annoyingly hard to get any positive and constructive feedback in the open source world usually. I think we could probably keep the component but just do a lighter version maybe that just uses the hook internally. something simple like this:
|
^ i immediately think that this could just be referenced as a straightforward example though and does not need to be bundled with the package...? 🤔 |
I would just bundle it for convenience. I think the community will be split for a while but appreciate you wanting to move towards hooks! |
use a prop called
innerRef
like style-components and formsy-react do:innerRef
to get ref to inner DOM node styled-components/styled-components#122<Swipeable innerRef={(el) => this.swipeableElement = el} >
related to issue #77
solved when PR #82 gets merged and released
The text was updated successfully, but these errors were encountered: