A Javascript Framework/library is a piece of pre-written code that helps us to build applications faster, easier, and better. There are a lot of javascript frameworks out there so deciding which one to use is not easy. In this article, we will be going on a crazy journey to discover which javascript framework is best.
1. ReactJS ⚛
Firstly we have React invented in 2013 by Facebook, React is by far the most popular javascript framework and one of the first javascript frameworks at the time. React is very open source so the community handles things like routing, and state management and the React community is so big many alternatives to the same problem. so many companies use React such as Mircosoft, and Facebook and with React native you can make mobile apps.
Pros of React (Good Side)
- 🤝🏽 Easy to Learn (not that easy.)
- minimal at first
- 😎 very popular in the Job Market
- 🌍 Huge Community.
- 📱 With React-Native you can easily build mobile apps.
Cons of React (Bad Side)
- Reactivity
- you will definitely get a lot of infinite loops
- understanding React's Reactivity is hard but very important.
- So many libraries to the same problem
- for animation, there are tons of libraries to choose.
- This is both a good and a bad thing.
- The good side is that it offers flexibility to choose whatever you want
- The bad side is that there is no standard for which library to choose.
- The useEffect hook
- in React, hooks are just special functions.
- This hook is the most dangerous hook in react, it causes infinite loops and it is not easy to understand. There is a lot more to this hook that you do not know but that's an article for another day.
Angular
Angular was invented in 2016 by Google, Angular is like the direct opposite of React. React is supported by the community but angular you do not need external packages for things like routing, animation, etc, it has those stuff by default.Companies using angular are Google, Upwork, Paypal, Forbes, etc.
Pros of Angular
- Reliability
- works well with Google services like Firebase.
- Huge community (not like React though)
- popular in the Job Market
- Scaleability, Angular can build really big applications
Cons of Angular
- Hard to learn (very hard)
- Typescript Required
- Not So many libraries to the same problem hence not flexible
3.VueJS
VueJS was created by Evan you in 2014 it is the progressive javascript framework. Stuff like routing and state management is handled by the vue ecosystem. Companies using vue are GitLab, Zoom, adobe, etc.
Pros of Vue
- Easy to Learn (very easy)
- Reliability
- Simplicity
- Good Documentation
cons of Vue
- Smaller Community than Angular and React
- Limited Resources
- Less Jobs Than React and Angular
4.Svelte
This one of my personal favorites, svelte was created in 2016 by Rich harris and with the release of version 3, it became the most loved framework according to the stack overflow survey(what over 70,000 developers took). Svelte is kind of like React it relies on the community for stuff like routing,server-side-rendering, etc. Companies using svelte are avast, GoDaddy, Chess.com, etc.
pros of Svelte
- The easiest to Learn
- Amazing Documentation (one of the best on this list)
- Magic syntax
- Great Reactivity (the best on this list)
- Blazing Fast (The fastest on this list)
cons of svelte
- very small community (smaller than vue)
- Lack of tutorials
- a very small quantity of Jobs (smaller than vue)
Honorable Mention
- SolidJS
- solid is an extremely fast React-like framework but it is still relatively new so it did not make the list.
in conclusion
These are the best frameworks in my opinion but which one is the best? honestly, there is no best. One of the strengths of React is its popularity and big community, the strength of Angular is its reliability, the major strength of vue is simplicity and the major strength of svelte is its speed. As much as I like svelte, I would personally recommend React or vue because I don't really think svelte would scale that much (for very big apps). I did not recommend for beginners Angular because it is not easy to learn but that does mean it is not powerful. Thanks for reading, if enjoyed it, please leave a reaction and comment on your best framework. See you next time ✌🏽✌🏽.
Top comments (3)
React is going to remain on that throne for a very long time 😄
so you think react is the best
Yes it has the biggest community and the most jobs available.