Material-Ui theming issue with React components imported from a library
问题 I'm facing an issue, and I searched in Google to find answer with no chance. I have created a React / material Ui library, with a lot of components extended from Material UI. This library belongs to a yarn workspace, together with a main app. The library is built with webpack and babel. In the main app, I'm importing these components and try to apply the global theme, created in the main app, using ThemeProvider. It's seems to work as first sight. When the lib component is alone in the page,