You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel like the documentation for withTheme is pretty dry and would benefit from having a better description for what the feature does, what problems does it solve and would benefit from having an example code.
This is a v1.x issue.
I have searched the issues of this repository and believe that this is not a duplicate.
The text was updated successfully, but these errors were encountered:
I sincerely do not understand what's the purpose of this method or when/how to use it.
I'd guess it's used to access the theme variable in a component I wrap with this HOC, but so far I've been unable to access it as a prop (which is the point of making an example in the docs) and looking at the code and tests I'm still confused. It seems like the theme is now in the HOC's state, but I'm still not sure how to use it (I guess with state.theme). But is the theme here passed from a parent MuiThemeProvider such as in style functions when passing the theme as a prop?
I feel like the documentation for withTheme is pretty dry and would benefit from having a better description for what the feature does, what problems does it solve and would benefit from having an example code.
The text was updated successfully, but these errors were encountered: