The to-do list app seems over engineered. Why use context and then also use redux-like syntax and methods? With useContext the code should be cleaner and more concise. Do you feel that these redux-like methods are better for performance and maintenance? Thanks for the videos!
Well, everybody have different taste about the code but I can't say that it is overengineered. All business logic is in context to share it across the application. Redux syntax gives you strict structure in comparison to plain useState. It's not about performance, it's about readability and architecture.
WATCH NEXT: React Interview Questions and Answers - Dominate Your Next Interview - ruclips.net/video/yQHr4opz_N0/видео.htmlsi=51b2XP_84GH3q6oF
Great 🎉
Thanks!
Why use create react app and not vite ?
Some of the projects here are older. Nowadays I recommend only Vite
The to-do list app seems over engineered. Why use context and then also use redux-like syntax and methods? With useContext the code should be cleaner and more concise. Do you feel that these redux-like methods are better for performance and maintenance? Thanks for the videos!
Well, everybody have different taste about the code but I can't say that it is overengineered. All business logic is in context to share it across the application. Redux syntax gives you strict structure in comparison to plain useState. It's not about performance, it's about readability and architecture.
@@MonsterlessonsAcademyI appreciate your response. So in this case, why not just use Redux instead of context?
Thank you very much bro❤🫂😍
Welcome 😊