📜  将 mui 主题添加到 index.js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:08.732000             🧑  作者: Mango

代码示例1
import React from 'react';
import { render } from 'react-dom';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import CssBaseline from "@material-ui/core/CssBaseline";
import Root from './Root';

const theme = createMuiTheme();

function App() {
  return (
    
      
        
        
      
    
  );
}

render(, document.querySelector('#app'));