Product List with Cart using React

Solution retrospective
I'm proud of learning how to make a simple shopping cart, and to use Zustand for global state management.
Next time I would use global state management at the start of the project, to save a lot of refactoring.
What challenges did you encounter, and how did you overcome them?My main challenges were learning how prop drilling works, and what props to pass through to nested components. Learning best practice of how state gets passed declared at the parent component and passed down to the child components helped me understand this better.
After I got the functionality working this way, I refactored the code to use global state management, so it was a challenge to learn how that works.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Adam Crowley'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