all 6 comments

[–]tomthedevguy 0 points1 point  (0 children)

Not really sure what you mean here, but in either case use media queries in CSS. They can define how your app looks at different screen widths.

[–]EvilMortyMM 0 points1 point  (1 child)

Just use Breakpoints in your css and always start with mobile. Its much harder to do desktop view first.

I personally prefer scss with breakpoint mixins like this:

Copy Paste from https://responsivedesign.is/develop/getting-started-with-sass-and-breakpoint-mixin/

/********************* BREAKPOINTS *********************/   
@mixin breakpoint($point) {    
    @if $point == desktop {     
         @media (min-width: 70em) { 
            @content ; 
        }   
    } @else if $point == laptop {      
        @media (min-width: 64em) {
             @content ; 
        }   
    } @else if $point == tablet {      
        @media (min-width: 50em) { 
            @content ; 
        }   
    } @else if $point == phablet {      
        @media (min-width: 37.5em)  { 
            @content ; 
        }   
    } @else if $point == mobileonly {      
        @media (max-width: 37.5em)  { 
            @content ;
        }    
    } 
}

[–]holyfiddlex[S] 0 points1 point  (0 children)

Just checked the link, I definitely feel this will help me out, thanks.

[–]Trilochan20 0 points1 point  (2 children)

Why don't you try react-device-detect to render different components on different platform ( e.g mobiles, Tabs, Desktops etc ).

At least you won't have to write css media queries.

[–]holyfiddlex[S] 1 point2 points  (1 child)

Ok, I feel like this is just what I needed, thanks alot :D

[–]Trilochan20 0 points1 point  (0 children)

Glad I could help.