Product list with cart using React and Motion
Design comparison
Solution retrospective
I am proud to have finished this challenge after such a long time. 🎉
Would change the way I handle state using the Context API.
Maybe later use styled-components or something similar?
What challenges did you encounter, and how did you overcome them?Performance issues, fixed using techniques such lazy loading, memoization, and using states to handle some loads of components.
What specific areas of your project would you like help with?Should I use the Context API or some library to handle the state?
What is the best way to download components after others are downloaded/rendered? (I use states like loadCart, productsFetched... etc.)
Would like to receive feedback about the way I use the lazy loading technique and how to organize the components.
If you find any bugs in the challenge, please let me know and I'll fix them!
Community feedback
- @danielmrz-devPosted about 1 month ago
Hey @Grego14!
Great job on finishing the project!
About this question:
Should I use the Context API or some library to handle the state?
I think using
Context API
is ok for a simple project like this, but you're free to try using more robust tools like Redux, for instance. I also finished this project using Context API because I thought Redux was too much for such a simple state management case.Hope it helps!
Marked as helpful0@Grego14Posted about 1 month ago@danielmrz-dev Thank you for your comment! Thought the same thing about Redux and this challenge.
1
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