Depends on what you want to do, but I vote React, no doubt!
vue.js or react.js, which should i choose to make frontend?
I'm a new, and which one to choose? Please give me some advice.
I agree with @malfait.robin . Go for React . React is developer friendly and it is the future . It has very good developer tools . Check this You can tweak react components without even reloading the page (it is called hot reloading) .
If you learn to code in React you can also create iOS apps using react native (React native android is coming next month).
And if you want something more better than React go for elm http://elm-lang.org/.
@malfait.robin @tangoG Thank you very much.
I've been happily using VueJS in production ever since completing the tutorials on here. Found it extremely easy to start using and I personally like how a lot of the view logic is directly in my HTML, similar to Blade.
The VueJS FAQ has a fair and honest breakdown of VueJS vs whatever, might want to check it out. Different strokes for different folks. :)
I like the Vue API and syntax a bit more than React's, producing more readable code and making it easy to sink your teeth in if you're new. Function wise I haven't run into any shortcomings, but I haven't used them on gigantic projects yet.
@colourmill I'm gradually working it into a fairly large project, so far so good. I'm mostly using it to handle content fed in by Pusher, it has worked great for that application. Previously I was using Handlebars/Mustache with templates being loaded via Ajax.
VueJS all the way. React is great, but I'd pick Vue in a heartbeat.
We were having the same dilemma. This is also one of the reasons I stumbled on this topic. A couple of weeks ago we decided to go with React instead of Angular but last week some one brought vue to our attention. We really liked it and wanted to consider giving Vue a try despite of our earlier decision to go with React. Since we were new to both Vue and React we build a few small applications to compare the both.
At the moment our pick goes to Vue.js and the reason why we still hesitate is the future. We still can not say how Vue.js will scale for bigger applications and since React is way more popular there are a lot more resources and off the self components available. Because it is maintained by the folks at Facebook and it has a huge community it is a much safer bet in terms of further development and maintenance.
The reason we probably will pick Vue.js over React is because we really like how it fits into the Laravel architecture. We like the how Vue.js separates layout and logic. We can build our views with blade and add functionality and interactivity using Vue.js. It is much easier to separate your CSS, JS and view files and it is a lot easier to read and understand what is going on. We think this will pay off in the long run.
Want more reading on this topic? This is what the people behind Vue.js have to say about it: http://vuejs.org/guide/comparison.html#React
+1 for VueJS. Simple and powerful :)
@ParaDevil Decide if your application would benefit from either first. Then, look at both and see which one you prefer, as it’s going to be you working with it, no one else. Every one else is going to be biased in their suggestions, but only you know which would be the best fit for your project.
Vuejs u dont need any explanation simple and easy to understand. Am in for vuejs
How about neither just use laravel and just use JavaScript a minimum amount. Like to auto fill some fields and maybe a popup calendar that sort of thing. Makes for a much much better site. Here lately too much JavaScriptification is being pushed.
I say go to the metal and hard code to the CPU and GPU! Write an assembler in C and then cross assemble that. Or just choose the right tools you like.
I'm a new, and which one to choose?
New Then I recommend VueJS simply because it is easy to understand, hence it existed to fix what other frameworks missed up! It is lightweight and modular!
which one to choose? I can not reference a better source that this. A great comparison with constructive criticism . http://vuejs.org/guide/comparison.html
@jlrdw Hear, hear! Learning web development in the ‘progressive enhancement’ era, all of these ‘SPA’ and JavaScript-heavy approaches in building web pages just feel wrong to me. Especially in a time where not every one accessing your web site or web application is on a powerful desktop computer with a feature-rich browser like Chrome. Forcing people on mobile devices like smartphones to download your 4+ MB website on their 3G connection is just bad form in my opinion.
I say go to the metal and hard code to the CPU and GPU! Write an assembler in C and then cross assemble that. Or just choose the right tools you like.
@jimmck That’s a completely gross oversimplification and not what is being discussed. There’s a world of difference between over-relying on JavaScript, bloating the weight of web pages with JavaScript frameworks for minimal ‘visual’ gains; to writing machine code instead of code in a high-level scripting language.
I have compared I don't know how many sites that use a lot of Ajax. Every one of them bog down, goof up one way or the other, and pages are very herky-jerky when they load. I use some AJAX myself, but all I say is don't over use that stuff. Use it to a minimum on an as needed basis.
@martinbean Try this on this very site after reading the post hit the menu then choose forum, and you have to wait 2 seconds before the CSS catches up with what's going on. Now multiply that tenfold on some sites I've seen. 2 seconds is not that bad.
@martinbean have you tried my two second test as in the above post yet. If so you see exactly what I mean hey I've only been programming since 1988. Started out in dBase 3.
Interesting jlrdw, I started with COBOL, C, Dbase II, Cold Fusion before php. These days I'm overwhelmed by the amount of Frameworks both in server side and client side. I went with Laravel a few years back as I like frameworks that don't restrict how you prefer to write your methods, so to speak. Lately I decided to go with Vuejs on a couple of pages.
Given the need to push reliable content quicker than the past, using JavaScript frameworks definitely saves time and is a better choice. I found no buggy problems with Vuejs so far and it is my recommendation.
Kind of a late reply, but the notes that came for Vuejs 2.0 alpha makes the choice pretty easy.
With the new architecture, there are even more possibilities to explore - for example, rendering to native interfaces on mobile. Currently, we are exploring a port of Vue.js 2.0 that uses weex as a native rendering backend, a project maintained by engineers at Alibaba Group, the biggest tech enterprise of China. It is also technically feasible to adapt Vue 2.0’s virtual-DOM to run inside ReactNative. We are excited to see how it goes!
Vuejs would be my choice.
Personally I can't stand vuejs and I tolerate/I'm very intrigued by React. There is two whole different frameworks, it's really a matter of taste. I don't like how vue require to put crazy stuffs in html tags, but lots of people seem to be comfortable with this.
for me putting tag in html is good . So we can easily notice which component is using. For example .
<todo></todo>
We can easily know todo component is using without having to look up Js file. IMO React way is more messy as it use getElementById and putting js to DOM.
reality check. Do you guys see yourself getting more work as a vue.js dev ? I have been using meteor exclusively for a year now. But the amount of work react has is just huge. Apart from personal projects, the most amount of work I see is in react. Regardless of what I think is a good tech.
@kaiyes Why would choosing to use Vue, or React, or whatever now necessarily affect the amount of work someone gets/does? I could just as easily work with Vue, Angular, and ember at the same time if I had to..
That said, I picked up Vue in less than a day and have built several components that perform without issue, for an interal work project.
Anyone have any good resources discussing using React with Laravel?
Note: IANAL There has been some discussion about the React license. In theory you could run into issues with Facebook as they have some patent clauses in the license. This might be a deal breaker for some projects/companies. https://news.ycombinator.com/item?id=11270213
So far I'm really happy with Vue, love the learning curve - really is easy to understand and use.
Some other recent discussions regarding the licensing:
https://discuss.reactjs.org/t/legal-department-did-not-allow-use-of-react/3309
https://www.reddit.com/r/javascript/comments/3zgo35/reactjs_licensingpatent_issue/
https://forums.meteor.com/t/react-facebook-patent-a-problem/21152/60
I don't think it's something to worry about, or at least I wouldn't let that drive your decision. Some of the largest companies around are using React and they've most certainly explored any legal implications and still gone ahead.
If you've got to get compliance from your over-zealous legal department before using anything, then that's probably going to be the only stumbling block.
Vue isn't very mature yet. How does this integrate in with node? It looks like a toy still compared with React. Reminds me of when Zepto.js says its faster than jQuery. It is but you are missing a whole lot of shit.
Keep it simple. Watch a few videos of each to see witch one you understand better. That is the one you should choose to get started. It all comes down to whatever you find easier to start with.
There is a nice tool to visualize each of the frameworks and choose by some parameters:
https://www.visualcomparator.com/g/angular-angular-vs-facebook-react-vs-vuejs-vue
I choose React :)
Please or to participate in this conversation.