Answer the question
In order to leave comments, you need to log in
Why are styles not being applied to the button in material ui?
Good afternoon! Today I started to study material ui and already have a question. I took all the code that will be below from the documentation, changed it slightly.
const useStyles = makeStyles({
root: {
color: '#fff',
backgroundColor: "#000",
border: 0,
borderRadius: 3,
height: 48,
padding: '0 30px',
},
});
export default function Weather(props) {
const classes = useStyles(props);
return (<Button className={classes.root}>weather</Button>);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question