Comparing React/Vue/Angular "Getting started" experience - Website and documentation
Tags: typescript, react, vue, angular
Published: 2020-05-10 00:47:55

This series compares my "getting started" experience and initial impressions of using React, Vue and Angular as a web developer already familiar with typescript and some frameworks. In this post, I will take a look at the websites and documentation.

---

The three most popular front-end web frameworks at the moment are most likely(*) React, Angular and Vue. My experience of modern JavaScript frameworks is mainly on [Aurelia](https://aurelia.io/). I have been following the scene and listening to talks and podcasts about React and Vue, and used AngularJS few years back, but until now I haven't actually tried using any of the three.

In this series of posts, I compare the initial experience of using React, Vue and Angular, including:
 - 1) The website and documentation <-- You're here
 - 2) [Setting up the first project](https://dev.to/mvuorinen/comparing-react-vue-angular-getting-started-experience-setting-up-the-application-3dkj)
 - 3) [Building and composing components](https://dev.to/mvuorinen/comparing-react-vue-angular-getting-started-experience-building-and-composing-components-3hee)
 - 4) Handling data and interactions -- (coming soon)
 - 5) Tools for running and debugging -- (coming soon)

Instead of following tutorials or copying sample code, I will take an approach that feels more practical from my perspective. I will figure out how to solve several technical problems in a business context that I'm familiar with. This allows me to compare the features of the three frameworks as well as how easy they are to learn while solving the problem at the same time. I use [TypeScript](https://www.typescriptlang.org) and [VS Code](https://code.visualstudio.com/), as I would when working on an actual project.

*) See for example [The State of JavaScript 2019](2019.stateofjs.com) and [Top JavaScript Frameworks and Topics to Learn in 2020 and the New Decade](top-javascript-frameworks-and-topics-to-learn-in-2020-and-the-new-decade-ced6e9d812f9).

# Websites

Although the website of the framework might not be the most exciting aspect to compare, it is nonetheless an important one. The quality of the documentation and the website makes a big difference when trying a framework for the first couple of times, and later when finding solutions for more specific problems. The documentation experience can easily be the thing that tips the scales when deciding whether a specific framework is for me or not.

Below is my personal experience using the website of each of the frameworks during this series, but the goal is to bring up details that are useful for others in a similar situation.

## React

![React homepage](https://dev-to-uploads.s3.amazonaws.com/i/0pr6zvcwb4xtgfa3lo4s.png)

[React](https://reactjs.org/) has an excellent website in all the ways I can think of. The home page has clear buttons to get started with coding or learning,  links to documentation and other resources, a bit of information about React, and interactive code samples for the key features.

The React website has two sets of tutorials, one for [learning by doing](https://reactjs.org/tutorial/tutorial.html) and another with a [step-by-step guide](https://reactjs.org/docs/hello-world.html) to React features. The approach works well for me: I can search for best practices for specific problems from the first tutorial, and examples of using specific features from the second one. The writing style of the tutorials is very learning-oriented and easy to follow as someone new to React.

The only problem with React documentation is that when using TypeScript, I often need to find other sources for examples and explanations. Luckily there are some really good resources like [React TypeScript Cheatsheets](https://react-typescript-cheatsheet.netlify.app/), and articles such as [Stefan Baumgartner's series on TypeScript and React](https://fettblog.eu/typescript-react/).

The tutorials and the main concepts don't mention hooks at all, so to learn about them, I have to check the [Hooks-section](https://reactjs.org/docs/hooks-intro.html) of the documentation, which is all the way down after *API Reference*. Based on what I learned after using React for a while, and with a help of a friend with more React experience, I think it is something that could be introduced earlier.

The API reference on the website is not the best for searching details about a specific function in the API. But when working with React, more than a concise description of the interface, I usually needed an explanation of when and how it should be used. For that, the API reference works well.

![React website search results](https://dev-to-uploads.s3.amazonaws.com/i/ri8qpn5eu9v4997l50f3.png)

Search works nicely and shows the hits clearly as a preview. A working search also makes finding details from the API reference much easier, making the issues I mentioned earlier even less of a problem.

## Vue.js

![Vue.js homepage](https://dev-to-uploads.s3.amazonaws.com/i/wyevs7xu8ees6o8jer0y.png)

[Vue.js](https://vuejs.org/) has a clear homepage as well, but the content is not quite as easy to navigate. The guide is a bit heavy in text, although there is also a free video course for those who prefer a more structured way to learn Vue. The video tutorial looks excellent, but it is doesn't quite fit my purpose of quickly getting familiar with specific features and best practices. The documentation also links to a [CodeSandbox example](https://codesandbox.io/s/github/vuejs/vuejs.org/tree/master/src/v2/examples/vue-20-hello-world), several [Scrimba](https://scrimba.com/) lessons, and has a clever idea to use the browser console as part of the samples. Having options is really nice, but at times makes the documentation as a whole feel a bit fragmented.

The styleguide is a very welcome part of the documentation, although it still leaves me uncertain of the differences between different syntax options, especially when TypeScript is thrown into the picture. There is a [page dedicated to TypeScript](https://vuejs.org/v2/guide/typescript.html), but it doesn't cover everything, so sometimes I find it difficult to figure out how a sample in the documentation translates into TypeScript. Just like in React, other online articles like [Writing Class-Based Components With Vue.js and TypeScript](https://alligator.io/vuejs/typescript-class-components/) come in handy.

One difficulty I have with the documentation is that examples sometimes lack context. It is not always clear where the sample code should be put and in which file, especially when there are different options on how the components can be structured.

![Vue.js website search results](https://dev-to-uploads.s3.amazonaws.com/i/9h4otv4ct0gzmhbnn4jj.png)

Vue website search looks and feels very similar to the React one. I'm guessing it has something to do with the [Algolia](https://www.algolia.com/) logo at the bottom.

## Angular

![Angular website](https://dev-to-uploads.s3.amazonaws.com/i/4otx5vkvcq83qdogva79.png)

[Angular](https://angular.io/) has a clear and informative website, with a bit more focus on showcasing the capabilities of the framework from a less technical perspective. The documentation is very thorough and covers a wide set of features and concepts, which makes sense considering that Angular itself is a more full-featured framework, whereas React and Vue are mainly focused on user interface. Similarly to the React website, there is a [sample-based tutorial](https://angular.io/tutorial) and a [fundamental concepts section](https://angular.io/guide/architecture). There is also a separate tutorial for [setting up local environment](https://angular.io/guide/setup-local), and a [complete sample application on StackBlitz](https://angular.io/generated/live-examples/getting-started-v0/stackblitz.html) to explore.

The documentation feels very technical in some places, and uses a lot of framework-specific concepts even in the getting started tutorials. For example, this is from the beginning of introduction to the basic concepts:

> "The basic building blocks are *NgModules*, which provide a compilation  context for *components*. NgModules collect related code into functional sets; an Angular app is defined by a set of NgModules. An app always has at least a *root module* that enables bootstrapping, and typically has many more *feature modules*."

The page doesn't give any more details about terms like *compilation context* or *bootstrapping*, and the language is quite difficult to approach without at least some prior knowledge about front-end frameworks. And even with that, it takes more effort to get through when compared to the language used by the React documentation.

One clear benefit of Angular documentation over the others is that all the samples are in TypeScript. This makes it much easier for me to apply them in the project, and it gives confidence that I'm using it as intended when the information comes from the framework website.

![Angular website search results](https://dev-to-uploads.s3.amazonaws.com/i/lywp6jarrr0e2eojh638.png)

The search function on the Angular website is much less impressive than its comparisons. Although it shows the section in which the result is in, there is less context so it is more difficult to see which search result contains the needed information.

## Conclusion

All the three frameworks have very well thought through websites with comprehensive documentation. They cover the needs of different types of learners on different levels, and give the necessary background about the framework for those who are interested.

The one that stands out for me is the React website, which has very clear navigation, writing style that is really good for learning, and tutorials that are easy to follow.

---

Thank you for reading! In the next part of the series I will look into setting up a project.