So, with the WordPress REST API finally rolled into core in December 2016, I decided it was high time that I buckle down and learn one of the frameworks to stay up with the times.
And what I learned is that VueJS is going to be my preferred framework for the foreseeable future. While it doesn’t have quite the community that Angular or React have at the moment, it’s the best and quickest one to learn, and that makes a world of difference.
It's a relatively simple framework
But once you get past that, VueJS is the most simple of all of the major frameworks out there. It doesn’t require a whole bunch of plugins to work, nor do you need a complex file structure to get it running.
After figuring out VueJS, I went on to try and learn React, and that didn’t go so well. I quickly became overwhelmed by stores and actions and the need for so many different components and files. It just felt so unnecessary.
With VueJS, there’s none of that, or at least none that I’ve found. Sure, there are technically stores and components, but they don’t feel like a requirement to get going. And that makes it much easier to learn.
But it's also still very powerful
That being said, it’s not like VueJS does nothing at all. It still is a very well-written framework that can certainly do more than just get the job done.
I tried to re-do my personal website using VueJS and I got really close to completing it before just resorting to plain old PHP. But it wasn’t because of any problem with VueJS. Instead, the problem lied with the functionality in some of the plugins I use on the site.
There are a ton of VueJS plugins out there that lazy load images for you, show social media posts and even make it easier to integrate CSS frameworks like boot. And they’re all super easy to install and run.
So while it might not be quite as powerful as Angular or React, it’s more than powerful for any project you might be building.
VueJS is easy to learn
Still, the thing that makes me love VueJS is that it’s really easy to learn, especially compared to React and Angular. Once
For example, when I started working on a starter theme using React, I found myself very confused about what I needed to do to get it up and running. I looked at other WordPress starter themes with React on GitHub and I quickly got lost in the code.
Of course, VueJS might not quite be for everyone. Maybe you’re just really focused on learning Angular and React. And that’s fine. Those are perfectly good frameworks to learn.