βοΈMigrating from Material-UI v4 to v5
Migrating from rocket-webapp-components to rocket-ui
2. Overriding styles
Last updated
Migrating from rocket-webapp-components to rocket-ui
Last updated
npm install tss-react//old way
import import { makeStyles } from '@material-ui/core'
//new way
import { makeStyles } from 'tss-react/mui'//old way
const useStyles = makeStyles(headerStyle)
//new way
const useStyles = makeStyles()(headerStyle)//old way
const classes = useStyles()
//new way
const { classes } = useStyles()//old way
import { IconButton } from '@bit/totalsoft_oss.react-mui.kit.core'
//new way
import { IconButton } from '@totalsoft_oss/rocket-ui.core'