Closed dy closed 4 years ago
According to react convention, components starting with use- prefix are hooks. That's a bit confusing that this component is called like hook but indeed it is not.
Would be nice to just
props => { let classes = useStyles({ root: {...}, secondary: {...} }) return <div className={classes.root}></div> }
useStyles is not a hook because it was created before React released Hooks.
useStyles
There is useCss hook though, which does Virtual CSSOM.
useCss
According to react convention, components starting with use- prefix are hooks. That's a bit confusing that this component is called like hook but indeed it is not.
Would be nice to just