A way to provide a styles object to withStyles from within a component #1607
Unanswered
mahhmoud-enzyme
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to edit the passed styles object passed to withStyles.
Something like this:
I want to be able to change the styles object dynamically from within the App component and I also want to access these classes in all nested components.
I know I can already do this with createUseStyles but with createUseStyles I can't access the classes prop in child components without having to pass it down manually.
Is there a way to achieve this?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions