-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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
[withWidth] Provide a hook API #13600
Comments
@Kizmar Hooks aren't stable yet, they are implemented on an alpha version of React. I think that we can expose a hook API version of our withWidth HOC with an explicit |
@issuehuntfest has funded $40.00 to this issue. See it on IssueHunt |
@oliviertassinari what package would unstable_useWidth be in? I'm unsure where to get the theme breakpoints from |
@joshwooding The |
@oliviertassinari How would you get the breakpoints from the theme with the old context? |
@joshwooding Using |
@oliviertassinari Is it okay to add that dependency across packages? |
We will kill the @material-ui/core/styles module with v4 for @material-ui/styles. We can add the package as a dependency. |
@joshwooding has submitted a pull request. See it on IssueHunt |
@oliviertassinari has rewarded $36.00 to @joshwooding. See it on IssueHunt
|
Regarding the Hidden documentation about breakpoints, specifically this code example:
Would it be possible to get a version of this code example using React Hooks instead of
recompose/compose
? Recompose is being deprecated (basically) with the addition of hooks.The text was updated successfully, but these errors were encountered: