Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

Coffeeroasters subscription site | React, Unit Tests, End-to-End Tests

cypress, react, react-testing-library, sass/scss, typescript
Christopher Adolphe•620
@christopher-adolphe
A solution to the Coffeeroasters subscription site challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hello frontend friends! 👋

This was long overdue but I finally completed my 4th challenge on Frontend Mentor. 🎉 I have been learning React since the beginning of 2022 and this project was a great opportunity for me to put what I've learnt into practice. Check my readme.md for more details.

Major challenge(s):

  • I decided to use React with Typescript and I had some difficulties in getting the right types for components props.
  • I really wanted to get the real development experience so I added unit tests for the components and end-to-end tests for the order scenarios.
  • I have yet to add unit test for the custom hook.
  • I still have to figure out how to set the redirection properly for a React application on Netlify.

Bonus:

  • I added some form feedback if the user tries to create a plan without selecting any options.
  • I added a skeleton preloader while the page content loads. I always wanted to implement such a feature and therefore I tried to come up with a solution for that using React.

It took me quite a while to complete this challenge because I was going back and forth in the React documentation and best practices. I really enjoyed that and I'm also happy with the result.

Your feedback would be much appreciated.

Thanks in advance. 🙏

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Christopher Adolphe's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License