Skip Navigation

Vue or React Vue JS Basics

In this episode, we will compare Vue to other libraries and explore some areas where you can do some further investigation.

Transcript

So, you might want to go a little bit deeper into the notion of React versus Vue and that's very common question. It's all over the web, you can find lots of articles about which one is better. Is Vue better? Is React better? And many questions. And there is no real sort of true answer to that, like anything in comparison, it's difficult to say one over another, and it depends on what your needs are and how you like to work with your JavaScript, I guess. I think personally that Vue is a nice, simple, lightweight, JavaScript library that's easy to integrate into projects. So, if you have a Laravel project or a WordPress project, and you'd like to just get some JavaScript going, it's pretty easy to go and add Vue. Now you could do that with React too, but I'd say it's a little easier to go and just drop in Vue there and just say, "It's set up." React though is mega big as well. And there's lots of people using React and lots of systems that are adopting React just as they're adopting Vue.

Something that's interesting in the Laravel community, if you're coming from the background of the PHP Laravel stack, and that's laravel.com, Laravel has very much adopted Vue. And I think that was due to Taylor Otwell and Jeffrey Way mainly, pushing and seeing the power that you can get with Vue and how easy it is to get started. So, if you click on down at the bottom here under Meta there's comparison with other frameworks, and so you can kind of see how... And they do a quick comparison on React versus Angular versus Angular JS versus Angular versus Ember, Knockout, Polymers, and Riot. And you could go through this and read some of the syntax on some of these systems.

Now I find that even with React, it may have like one thing like, "Oh, you need to use JSX templets." Or something like that, very specific. There's always work arounds. There's always other ways to get through things. So, you kind of need to do an exploration of both of them I would say, explore Vue, explore React, and see what you like, see what's more comfortable. See what comes easier maybe for you, when you're making that distinction. I though would probably choose between one of those at this point, that'd be Vue or React.

Something that's interesting that goes with React though is, React also has React Native and React Native is for building iPhone or Android apps. And again, made by Facebook and is a pretty interesting way of building. And a lot of apps out there that you might already be using such as Instagram and the Facebook ad app. And some of the functionality, I believe, of Facebook iPhone app itself is written in React already. I also believe Airbnb has used React. Yeah, I believe they were using React Native with their latest iPhone build as well. And it's something that you can go and easily integrate.

Now Vue also has a couple different projects and plans to integrate that same sort of functionality. And I believe a Chinese company is leading the way for that to build in a Vue based or Vue Native system that you could go and run on iPhone iOS and Android. And the way that React Native and Vue are going to be setting these up is it actually is going to compile that code, that JavaScript code, and HTML, and CSS, into the Native code base. So, a little bit different than the way something like Adobe Cordova or like PhoneGap, I believe it's Adobe PhoneGap now and Cordova is an open source by Apache now.

So, a bunch of different ways you can go and do that. Definitely read these docs. I'm going to skip through this as it's sort of a choice here that you may be concerned about, you may not be concerned. You're here to learn Vue, so let's go and jump in and learn some Vue code.