-
Notifications
You must be signed in to change notification settings - Fork 35
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
renderProps / hooks #2
Comments
It's not possible - there is no place for API such this. |
Anyway - maybe we are talking about different aspects. Could you give an example from your mind? |
My use case is that I'm shipping a bunch of hooks. They return props like |
The only way to expose hooked API is to rewrite everything to hooks, then redo component API using hooks, and then export component and hooked API for everyone. In the same time it will reduce the package size.
|
|
I ended up using this imperative library within |
body-scroll-lock is not bad, I would recommend scroll-lock as a better alternative. |
This issue has been marked as "stale" because there has been no activity for 2 months. If you have any new information or would like to continue the discussion, please feel free to do so. If this issue got buried among other tasks, maybe this message will reignite the conversation. Otherwise, this issue will be closed in 7 days. Thank you for your contributions so far. |
Hi @theKashey. I found this library while researching for solutions to build accessible dialogs. Thanks for your work.
Do you have plans to provide render prop and/or hooks API?
The text was updated successfully, but these errors were encountered: