Rahana23
@Rahana23All solutions
- Submitted 23 days ago
ProDuct List With Cart Using React+Vite
- HTML
- CSS
- JS
Specific Areas I Would Like Help With: 1.Context API Optimisation: Although I managed to resolve the issue with the CartContext, I would appreciate help in ensuring that I’m using the React Context API in the most efficient way. Specifically, I want to know if there are better patterns for managing complex state, especially with the cart functionalities (like adding/removing items or updating quantities).
2.Error Handling: I would like some guidance on how to better handle errors in my app. While I’ve implemented the useCartContext with a proper error message when the provider is missing, I’m not sure if I should add additional error boundaries or other error-handling mechanisms to make the app more robust.
3.Component Structure and Reusability: I’d also like advice on the structure of my components. I feel like some of them could be made more reusable or organised better. For instance, making the Product and ProductList components more modular or easier to scale in case the project grows.
4.CSS and UI Consistency: Lastly, I’d appreciate feedback on how to improve the styling of the app. While I’ve used CSS modules for styling individual components, I’m not sure if my approach is consistent or scalable for larger projects. Any advice on best practices for organising styles and improving responsiveness across devices would be really helpful
- Submitted 5 months ago
Classic Omelette Recipe
- HTML
- CSS
I would like help with optimising my website performance.