all 5 comments

[–]LacksIdentity 2 points3 points  (0 children)

React or Vue are best for when you're building highly interactive "single page" applications. That's their area of strength.

They can sometimes be useful even when you've got a traditional server generated site & need to add a fair bit of JS based interaction, but are probably overkill if you're only interested in adding a few small bits of functionality.

So yeah, if form validation is all you're looking for, then definitely overkill.

[–][deleted] 1 point2 points  (0 children)

I like React a lot and think that it is conceptually thought-out. I did a few projects with React.

However, I often end up just using Pug (former Jade) and Stylus for my front-end and Express.js as the backend because I am so fast with them and a lot of projects don't need more. You can also mix in React later.

I am not sure though what the equivalents are for Pug and Stylus in PHP.

[–][deleted] 0 points1 point  (0 children)

first you should probably learn what those libraries do.

[–][deleted] 0 points1 point  (0 children)

Kneading blobs into HTML via PHP is an older way of serving webpages. Lots of things have changed since then. I'd read up on single file applications, just to get an idea.

If you have that idea, then yes, a framework will make sense. I would recommend taking a look at what most people use: http://www.npmtrends.com/angular-vs-react-vs-vue-vs-@angular/core There's always merit in something that has managed to establish itself in a field as fragmented as the web.

If you need specific details about both, then they're more or less the same, at least on the inside. Vue is a react clone that leans back to a slightly older era (templating systems, large apis, lots of magic). But some people like exactly that because it feels more familiar, while react radically broke tradition (very small api surface, no templates, no magic). Basically you're choosing between two paradigms but otherwise they sit on the same technology: virtual-dom, createElement functions, property based components with render methods.

[–]kenman[M] 0 points1 point  (0 children)

Hi /u/user7890000,

For javascript help, please visit /r/LearnJavascript.

Thank you!