React Funda
React? What Is It?
React is an open-source JavaScript library adopted for developing user interfaces for SPA. It’s used for controlling the view layer for web and mobile apps. React allows us to make reusable UI components.
React was early created by Jordan Walke, a software engineer working for Facebook. React first deployed on Facebook’s news feed in 2011 and on Instagram in 2012.
React allows developers to build huge web applications which can change data, without refreshing the page. The major purpose of React is to be fast, scalable, and simple. It works only on user interfaces in the application. This corresponds to View (V) in the MVC template. React can be applied with a mix of other JavaScript libraries or frameworks, such as Angular.
SPA vs MPA
SPA is stronger than MPA in terms of faster page loading, increasing user experience, reduced development of mobile applications, and disposing of the need to create codes for page rendering on the server. MPA is superior to SPA in terms of simplicity of UI code and easier SEO. So comparing between the two is simply based on the goal of the application.
Library vs Framework
- A library can be replaceable by another library, but a framework cannot.
- If you don’t like the jQuery date picker library, you can replace it with another date picker such as bootstrap date picker.
- If you don’t like Angular.js on which you built your project, you cannot just replace it with any other framework. You require to rewrite your entire code base.
- A library takes less of a learning curve compared to frameworks.
For example, React.js is a library, Angular.js is a framework.
React vs Angular
The battle for the Front-End is not over yet. The mature feature-rich framework and the dynamic JS library cannot be deemed as equal competitors. Both are robust technologies widely adopted in the web app development industry.
Get Noman Gul’s stories in your inbox
Join Medium for free to get updates from this writer.
I’m not withdrawn from one in support of another but, projects developed with Angular are rarer in the company than those with React are. In fact, you may face many switch-to-React cases on the web, as well as React-to-Vue.js ones. Each of them has own reasons for such a decision. Still, it would be unfair to claim the Google’s framework is in its last stages. Be attentive and well-targeted in making your pick. Good luck!
Virtual DOM vs DOM
The DOM is implemented in the browser and has the representation of your application UI. Every time the state of our UI changes; the DOM is updated to show that change but, manipulating the DOM can be tedious.
Even just reading from the DOM can produce undesirable side effects in our applications. Modern applications are dynamic and need to handle change efficiently.
The Virtual DOM allows for faster and easier to reason about applications, but it also has even stronger implications. The virtual DOM is excellent for cross-browser issues because our applications no longer have to deal with the DOM themselves.
Now we are free from the DOM we can build applications using web technologies without a browser! We can do things like rendering our virtual DOM on the server or even HTML canvas.
Something Missing?
If you have ideas for more “Comparison” recipes that should be on this page, let me know.





