Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

E-commerce product page with React & TypeScript

#react#typescript#vite#react-testing-library
P

@andreasremdt

Desktop design screenshot for the E-commerce product page coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
3intermediate
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hey there,

This is my solution to the e-commerce product page challenge.

The application is built with React, TypeScript, and Vite. Styling is done through CSS Modules, which are supported by Vite out of the box.

For complex components such as dialogs and popovers, I went with Headless UI, which makes building these things much easier. Everything is completely responsive, accessible, and works as expected.

My main focus for this challenge was to test everything thoroughly using unit and integration tests. I decided to try out Vitest in combination with React Testing Library and ESLint for static code analysis. The test coverage is at 100%. Working with Vitest was delightful, I'll definitely use it for future projects.

Let me know what you think :)

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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