
Single shop page built using NextJS and TailwindCSS
Design comparison
Solution retrospective
The most important things that allowed me to build this project was the concepts of createContext, useContext and specially the hook useReducer, all them from React. I preferred to create the initial values and the reducer functions using Typescript classes for a more organized project structure.For the first time, I think that using React (or in this case NextJS) was a better choice than building the entire project using vanilla JavaScript.
What challenges did you encounter, and how did you overcome them?The functionality of hidden the product units to buy component when its product have been excluded from the cart was a challenge for me, but in the end I could implement this feature using the help of useLayoutEffect Hook along the global context created using createContext hook.
What specific areas of your project would you like help with?Any feedback about the project is very welcome. I really want to improve my programming skills and your feedback is very important. Thank you for reading.
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