Submitted almost 2 years ago
Ecommerce Product Page using React and Zustand
@Emvil-git
Design comparison
SolutionDesign
Solution retrospective
Hello, I find it difficult to implement the styling of the gallery thumbnails once they are selected/ displaying on the main image. I used a ref as an index to select which image in the sliding gallery to display.
Is there a way to do this?
I've tried workarounds with props and states on the thumbnails but they've all caused the sliding gallery to have unpredictable behaviour.
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