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
Is it necessary that the component to which withStyles has been applied be exported as default?
If not, how can I export multiple components after applying withStyles on each of them?
i.e. I'm trying to do something like -
Hey @Strategist-Roy! Thanks for reaching out. In the code you provided above, you’re only exporting the components that are not wrapped with withStyles. withStyles will return a new component, and that’s what you want to export. You want to do something more like:
Is it necessary that the component to which
withStyles
has been applied be exported as default?If not, how can I export multiple components after applying
withStyles
on each of them?i.e. I'm trying to do something like -
But ,it's not working..
The text was updated successfully, but these errors were encountered: