📌  相关文章
📜  将道具传递给 makestyles - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:56.238000             🧑  作者: Mango

代码示例1
const useStyles = props => makeStyles( theme => ({
    div: {
        width: theme.spacing(props.units || 0)  
    }
}));

//calling the function
const classes = useStyles(props)();