If someone uses breakpoints in their theme for createTheme(), then I have a solution for how to get breakpoints
createTheme()
Material-UI 4
import createBreakpoints from '@material-ui/core/styles/createBreakpoints' const breakpoints = createBreakpoints({}) export const defaultTheme = {...}
Mui-5
yarn add @mui/system
import { createBreakpoints } from '@mui/system' const breakpoints = createBreakpoints({}) export const defaultTheme = {...}
Thank you for adding this snippet. I was trying to figure this out!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If someone uses breakpoints in their theme for
createTheme()
, then I have a solution for how to get breakpointsMaterial-UI 4
Mui-5
yarn add @mui/system
Thank you for adding this snippet. I was trying to figure this out!