If you have started with the Web Development or if you are doing web development from a long time then you must have heard of Angular, React and VueJs. They all are JavaScript framework for web development. But among then React is more popular than other.
What is React?
React is a JavaScript library developed by Facebook for easy and fast web development. It is used to create Single Page Applications and now days you can create native Mobile applications using React Native. Its first release was in year 2013.
So the Question arises is Why React is So Popular?
Declarative Style: A declarative style, like what react has, allows you to control flow and state in your application by saying "It should look like this". An imperative style turns that around and allows you to control your application by saying "This is what you should do".
Virtual DOM : The virtual DOM (VDOM) is a programming concept where an ideal, or “virtual”, representation of a UI is kept in memory and synced with the “real” DOM by a library such as ReactDOM. This process is called reconciliation.
Easy to Learn : Being its only HTML and Javascript React is very easy to learn.
Community Support : React has a large base of developers and supporters. Since it is a old library you can find most of the answer in the Community.
JSX : JSX stands for JavaScript Xml, It means you can use javascript inside html or xml just by typeing your code inside '{' and'}'.
SEO: React on its own is not SEO friendly and everything works on Virtual DOM it is difficult of web crawler to find the content but if you are using Nextjs or Gatsby you can optimize you site for SEO.
SPA : One of the main Advantage of React is that We can create Single page Applications ie our site will not reload when change the page. UI is changed without Refresh.
Github repo of React is:
https://github.com/facebook/react
Follow me on Github
Follow me on Instagram
Follow me on Twitter
--------------------THANK YOU------------------------
Top comments (4)
Another reason: Facebook.
React is amazing.
I don't think Facebook is a reason but as anything become famous just of its users so there are so much Developer and contributers of react that's why.
correct