I have chosen the 'dark' theme and would like to apply it to an h1
element. How can I achieve this?
The method below does not yield the desired result:
<MuiThemeProvider theme={theme}>
<h1>Page Title</h1>
...
The following approach successfully applies the theme but triggers a warning message:
<MuiThemeProvider theme={theme}>
<DialogTitle><h1>Page Title</h1></DialogTitle>