Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react material ui classname

const styles = makeStyles((theme: Theme) => ({
  container: {
    display: 'flex',
    flexWrap: 'wrap'
  },
  spacious: {   // class name
    padding: 10
  },
}));

const classes = useStyles();

// use it
<div className={`${classes.container} ${classes.spacious}`} >
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #material #ui #classname
ADD COMMENT
Topic
Name
1+5 =