Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cannot read property of undefined reading create material ui

import { createTheme, ThemeProvider } from '@mui/material/styles';

const customTheme = createTheme({
  palette: {
    primary: {
      main: '#4A16DA',
      contrastText: 'white',
    },
  },
});

// then
 <ThemeProvider theme={customTheme}>
        <App />
  </ThemeProvider>
 
PREVIOUS NEXT
Tagged: #read #property #undefined #reading #create #material #ui
ADD COMMENT
Topic
Name
2+4 =