Analytics Vidhya
Published in

Analytics Vidhya

Why Vue.js Is The Best Framework For Beginners

Vue.js is a javascript framework that has become quite popular in recent years and is used to build user interfaces and single-page applications. A single page application does not mean a website with only one page! Instead, it’s a website that dynamically rewrites the current page with new data instead of loading the entire page again. This provides a much better user experience as users can navigate between pages without having to wait for pages to load every time.

Compared to Angular and React (the two most popular javascript frameworks), Vue is a lot simpler to understand for programmers and non-programmers. It splits up HTML, CSS and Javascript so you can focus on constructing each individual component exactly as you’d like.

Let’s check out some example code:

<h1> {{ message }} </h1>
export default {
name: 'ExampleComponent',
data: function() {
return {
message: 'Hello World'
props: [],
methods: {},
created: function(){}
<style scoped>
h1 {
font-size: 2em;
text-align: center;

You have the template area where you place your HTML elements, the script area where you place the component’s logic (mostly in Javascript) and data used and the style area where you place your CSS elements.

As Vue breaks the component down into different areas/languages, it makes it a lot easier to understand what the components does and how it interacts with the outside world!

Overall, Vue is a lightweight, javascript framework that is great for learning and prototyping so if you’re looking to build your first website or an MVP, this is the perfect framework to explore the web dev world and test out your idea within hours! It also has a good range of well-built component libraries (e.g. Bootstrap Vue, Buefy, Element UI) that you can import almost instantly using Vue CLI.

Happy coding! :)



Analytics Vidhya is a community of Analytics and Data Science professionals. We are building the next-gen data science ecosystem

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akhil Sonthi

Tech Enthusiast | Entrepreneur | Music Artist | MEng @ Cambridge