3 ms·
I am still unsure if there is a legit use case for Vue or React over plain HTML+CSS+JS. I can understand the use case for React native. To build native applica
by TekMol 10y ago
I am still unsure if there is a legit use case for Vue or React over plain HTML+CSS+JS.
I can understand the use case for React native. To build native applications on multiple platforms.
But what is the use case for React, Angular, Vue etc? Can somebody give a minimal example?
- edoceo 10y agoIt's about maintaining complex UI state for me. Not sure how to fit that in a minimal example. Those all look like Vanilla JS can handle it. But when things get big, or sorta complex, or try to have very fine UI behavior for complex workflows then React, Vue or my fave Riot really shine. If it's minimal you don't need these. When it's not you'll be glad you have them.
- YCode 10y agoNot sure what you mean by "legit use case", because you could write just about anything in vanilla, but for React specifically the value of using it comes from state management. By explicitly defining what is state and when you change it the application becomes largely pure/functional and this has a tendency to both decrease bugs and make the application easier to reason about. You could do that in Vanilla as well, but as your apps grow React or whatever.js generally is ready to grow with you, whereas your homebrew solution may not be.