Product cart list component

Solution retrospective
Well this project has a lot of part to be work on, it was a junior level challenge, but it did looks like that, i completed with help of Gemini in rendering the selected products with correct quantity.
and now i know how to lay the data from json, update states, create counter like this one has and some level of conditional rendering.
What challenges did you encounter, and how did you overcome them?i started it in typescript, so when gemini provide the solution for rendering selected cards in the cart, i was getting a error which took a lot of time, it made me convert the files in (jsx) from (tsx) and still was not working,
but later got a solution and i still had to convert them into (jsx) but i think it is fine.
What specific areas of your project would you like help with?look at the code, one function in App component, it was doing everything, its also updating the counter,
if you look at my functions to update the counter, they look a little different,
its gemini's code, its saying that when you click of increase button, it tell the App (hey, app update the quantity by 1), believe me gemini says exactly like that, and (i'm like what the ...??) tell me how it works, and it keeps saying that it does work like that,
i think it become some kind of automatic function which works under the hood, can anyone explain me how it works or where i can find my answers.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Legaz-le
Good job but you need to fix your cart it shoudn't take whole height. I would recommend you to separated the items and cart in different files and in one file just make flex and flex-col for small devices. Also another thins your items should take col-3 in width:1024px but yours take col-2 but generally it okay but need to work on layout and responsiveness for devices.
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