Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const getDeviceConfig = (width) => {
- if(width < 320) {
- return 'xs'
- } else if(width >= 320 && width < 720 ) {
- return 'sm'
- } else if(width >= 720 && width < 1024) {
- return 'md'
- } else if(width >= 1024) {
- return 'lg'
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement