@MunibAhmad-dev
Posted
First of all, great job on completing the project! π Here are a few points of feedback:
It's fantastic to see you experimenting with the useContext hook for managing cart states instead of relying on Redux. This not only shows your willingness to step out of your comfort zone but also your eagerness to explore and learn different state management approaches. It's a great way to understand the nuances and benefits of each method. Perhaps next time, you could document your findings and compare both approaches in a blog post or a detailed readme. This would not only solidify your understanding but also help others who might be in a similar learning phase.
Your approach to make the project more realistic by externalizing product data and simulating a larger product set is commendable. It's a practical step that showcases your forward-thinking and ability to handle scalability. Additionally, modifying the "add to cart" design to deepen your understanding of context is a smart move. It shows youβre not just completing tasks, but also thinking critically about the user experience and the underlying architecture.
For specific areas of improvement, I'd suggest focusing on the following:
Code Structure: Ensure your code is modular and well-documented. This makes it easier for others (and future you) to understand and maintain. Performance Optimization: Look into optimizing your use of context to prevent unnecessary re-renders, especially as the product list grows. Testing: Consider adding more tests to cover edge cases and ensure the reliability of your application as it scales. Overall, your project demonstrates a solid understanding of React and state management. Keep experimenting and pushing your boundaries. Well done! π
Marked as helpful
@Alex-Archer-I
Posted
@MunibAhmad-dev
Thank you! =)
Yeah, the code is a bit messy now. It's cos I had to change components structure on the fly a few times. Guess I need a more practice to see overall structure in advance.
Thanks again for kind words, it's really encouraging =)