📜  在组件 mui 中使用主题 - Javascript 代码示例

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

代码示例1
import React from "react";
import { makeStyles } from "@material-ui/core/styles";

const useStyles = makeStyles((theme) => ({
  root: {
    backgroundColor: theme.palette.secondary.main
  }
}));

export default function App() {
  const classes = useStyles();
  return (
    

Hello CodeSandbox

Start editing to see some magic happen!

); }