
Design comparison
Solution retrospective
I do not geniually write this code.it was too hard. but I re-write it and examined it and now it's... easy:) i would write it with react next time since i want to learn react.
What challenges did you encounter, and how did you overcome them?write a function to change the order count and change the total count and do calculations all at the same time was so overwhelming and hard. i did everything but I couldn't find a solution so I began to search to see if anybody did it. fortunately there were too many people.
What specific areas of your project would you like help with?that "at the same time" functions which calculate.
Community feedback
- @mathematiCodePosted 5 months ago
This is a pretty challenging problem to solve with just javascript. But you did a great job! I'm learning React too and the state management tools React provides definitely helps with the multiple different elements updating at the same time.
One note: For anything that the user needs to click as a button, make sure you wrap it in a button tag so it is accessible to people who only use keyboards and are unable to use a mouse.
<button class="decrement-button"> <img class="icon-decrement" src="assets/images/icon-decrement-quantity.svg" alt="icon-decrement-quantity"> </button>Then you can add the event listener to the button instead of the image so it can be clicked without using the mouse at all.
Nice job with the modal, that can be tricky. Sometimes people will want to close it just by clicking out of it in the backdrop area. But that is a lot easier with React; you can just use a component that someone else made.
All of your CSS looks great!
Marked as helpful1@daniyal-abbassiPosted 5 months ago@mathematiCode thank you for giving me your feedback, it means a lot. this challenge was so hard and sometimes, just so annoyin'. and if you may I like to ask a question since you know react already, for me the path to learning react is so complicated, and ... I get completely lost in it. would you please tell me how you learned it? thank you.
0@mathematiCodePosted 5 months ago@daniyal-abbassi It is pretty confusing at first compared to html/css/js. I am taking Josh Comeau's Joy of React course and he explains the concepts really well. But still, I have to just do some learning and when I start to feel like nothing is making sense, I do a frontendmentor project to practice and that helps so much! I ask chat gpt when I get stuck.
This might be helpful too: Thinking in React
0
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