
Submitted over 2 years ago
Product Preview Card using React and Styled Components
#react#styled-components
P
@TimMartin13
Design comparison
SolutionDesign
Solution retrospective
What is the best practice to swap the image based on a media query in React with Styled-Components? I couldn't get the image to swap without adding a second image and hiding the one that wasn't suppose to show. It works fine, just probably not optimal.
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord