I had the same problem and solved the problem by setting the default theme. Add the following code to the file (name of your choice) .js
import { createMuiTheme } from '@material-ui/core/styles'; const theme = createMuiTheme({ typography: { button: { textTransform: 'none' } } }); export default theme;
Then you can add the file to your application in index.js. I called it theme.js:
... import theme from './theme'; ... const app = ( <ThemeProvider theme={theme}> <CssBaseline /> <App /> </ThemeProvider> ); ReactDOM.render(app, document.getElementById('root'));
Ndirangu waweru
source share