Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

E-commerce Product Page built with React and Tailwind CSS

react, tailwind-css
Khent Alba•440
@Lemon1903
A solution to the E-commerce product page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Good day Frontend Mentor Community! Here is my solution to the E-commerce Product Page challenge.

I have been out for a while because I am learning React and Tailwind CSS but now I'm back with this completed challenge using newly learned React and Tailwind CSS yay!

It was quite challenging to write clean code in React where you don't litter the code with prop drilling, messy code, and unorganized file structure but overall it was fun and accomplishing. Implemented all the features stated in the objective and it feels great being able to do that!

Where I struggled a lot was how should I write my state management? When shall I use useReducer rather than useState and where shall I put that state? This questions requires a lot of thinking and takes up time in order to write clean code.

P.S. I first started this one with just HTML, SASS, and Javascript only and managed to complete the mobile view of the page but I transitioned to React and Tailwind to hone my knowledge in that area further.

Happy to hear any feedback and advice on how to write cleaner code in React! Have a nice day everyone!

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 Khent Alba'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

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