Dynamic props based on viewport #185
              
                Unanswered
              
          
                  
                    
                      diegogutierrez-dev
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently working on some parallax effects that change between viewports. For example:
Mobile:
Desktop
My approach is conditionally passing props based on the output of react-responsive:
But somehow, on mobile, I'm getting a mix of both translations.
Also getting this TS error 🤔
Beta Was this translation helpful? Give feedback.
All reactions