Product cart with list (React)

Solution retrospective
I think implementation is pretty close to the design and works as expected.
What challenges did you encounter, and how did you overcome them?🤔 Open/close the <dialog>
-based modal?
✅ Use useRef
to reference the element and call imperatively the showModal()
/close()
upon order confirmation/reset.
Any advice/feedback appreciated.
In particular: I didn't find a way to animate the closing of the modal (which is a <dialog>
) like on the Figma prototype. I tried things from this blog post but I couldn't make it work well on Firefox, Chrome and Safari.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @sumaiyakawsar
Great job
Join 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