DEV Community

Cover image for React vs Vue: Comparing the Two Most Popular Client-Side Framework/Library
Chijioke Ezeh
Chijioke Ezeh

Posted on

React vs Vue: Comparing the Two Most Popular Client-Side Framework/Library

Over the years, the world of frontend development has witnessed blazing advancements which has ultimately eased the development process of web applications thanks to modern-day client-side frameworks/libraries such as React, Vue, Angular, Svelte, etc. Arguably, Angular by Google takes credit for what we currently enjoy today but it's shortcomings gave birth to frameworks/libraries such as React and Vue which we will focus on.

A Framework or A Library

A framework is quite different from a library. Frameworks are opinionated and provide a blueprint that you should follow in order to get expected results. Libraries on the other hand gives you the freedom to approach problems the way you want to.

Vue started as a small library which later grew to be a progressive framework while React has always been a library.

React

Developed and actively maintained by Facebook. It has been the biggest player in the frontend development space since its release in 2013. Its component-based architecture and massive ecosystem made it the favorite among developers of all ages for building dynamic and high-performance web applications.

Features Highlight

  • Virtual DOM
  • Component-Based Architecture
  • One-Way Data Flow
  • JSX only

Vue

Vue, the "progressive JavaScript Framework" created by Evan You has steadily grown in popularity due to its simplicity, flexibility, and powerful feature set.

Features Highlight

  • Two-Way Data flow
  • Virtual DOM
  • Component-Based Architecture
  • JSX and HTML

React or Vue: Which Is Better?

React and Vue.js are solid technologies in their own right. React's extensive ecosystem, consistent performance, support from facebook and it's flexibility makes it the first choice for many developers. Vue.js's better performance, simplicity and its comprehensive ecosystem make's it an attractive alternative.

Rendering "401" in vue and react

<template>
  <div id="app">
    401
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>
Enter fullscreen mode Exit fullscreen mode

vue

function App() {
  return (
    <div className="App">
      401
    </div>
  );
}

export default App;
Enter fullscreen mode Exit fullscreen mode

react

N.B yeah i will stick to React đź‘Ť

My Expectations at HNG

HNG is a massive gathering of people from different parts of the world at all levels. It is actually a good thing that the frontend track favors React which i feel is just right because it is the most popular choice among developers, easy to pick up (state management can be a problem though) and there are enough tutorials/articles.

In summary, I intend to have fun, meet people, play, and build.

https://hng.tech/hire
https://hng.tech/premium

Top comments (0)