Analyzing the Difference Between ReactJS and AngularJS
Analyzing the Difference Between ReactJS and AngularJS
III. PROPOSED METHODOLOGY but there are the two most used frameworks that developers
We are building the same frontend web page with the help prefer are:
of each framework and trying to analyze the difference a) ReactJS (JS Library)
between both web pages with the help of the google developer b) AngularJS (JS Framework)
tool i.e. Lighthouse. The purpose of this research is to show There is a difference between the library and the
the potential strengths and weaknesses of each framework so framework. A framework contains a lot of APIs, compilers,
that readers can make an informed decision when choosing and libraries. On the other hand, the library contains helper
between them. To achieve this, frameworks are compared in modules, classes, objects, functions, and pre-written code. A
various categories: popularity, learning curve, SEO, and framework is difficult to replace but a library can be easily
performance. replaced by another library. Fig 1 shows the relationship
A. Popularity between library and frameworks[7].
Framework popularity is a very important point to be
considered because it shows how much a framework is
famous among programmers and organizations. Popularity
gives us an idea that how many users are there for a particular
framework. The evaluation of popularity is done by collecting
and analyzing data from leading cloud platforms related to
software development such as GitHub, NPM Trends, and
Stack Overflow[9].
B. Learning Curve
The framework learning curve is the best point to figure
out the difference between any framework because it shows
us the difficulty level of the framework and how much time it Fig. 1. Library v/s Framework
will take to learn that framework for programmers. By
comparing the syntax, architecture, data management, A. ReactJS
longevity, and simplicity of using third-party libraries of the ReactJS is an open-source frontend JavaScript library and
framework, the learning curve would be evaluated. The it is used to make the user interface of the single-page web
information required for that will be acquired using the application. React was created by Jordan Walke, a software
technical documentation for each framework [2]. engineer at Facebook. React was open-sourced in May 2013.
ReactJS is based on UI components. ReactJs is used to create
C. SEO (Search Engine Optimization)
single-page web applications. A single-page application is a
Search engine optimization is the process that improves web application in which page reload never occurs, which
the quality and quantity of webpage traffic of a web means if a user wants to open another web page, then the
application to increase its visibility on the search engine. In whole page will not reload instead, it will retrieve that page
other words, if the search engine optimization score is higher with a single page load[5].
for a web application, then it will be displayed higher in the
search engines. And that web application will receive more React is made up of components and these components
traffic[6]. can be written in two ways: components as a function and
components as an ES6 class. React doesn't use any specific
D. Performance template language it uses JSX extension which is basically
The performance of a web application refers to how fast a HTML code enriched with JavaScript code. And there is a
web browser can load and display a website's information, as need for a compiler that converts this JSX code to simple
well as how efficiently it reacts to user input. Poorly JavaScript code[8].
functioning websites take a long time to display and react to
B. AngularJS
user interaction. To evaluate framework performance, we
build a small application in each framework with the same UI AngularJS is an open-source frontend JavaScript-based
and content. Then measured the performance of both framework, used to build the single-page web application user
webpages using Google Chrome developer tools i.e. interface. AngularJS is developed by Google employees
Lighthouse. There are different parameters for performance Misko Hevery and Adam Abrons in 2008. AngularJS is used
like page load time, speed index, total blocking time, first to make single-page web applications. Angular has two
contentful paint, and largest contentful paint [1]. versions, 1st version is known as AngularJS and 2nd version
is known as Angular 2. Angular is used to make complicated
IV. JAVASCRIPT FRAMEWORKS and fast web applications. Nowadays Angular is used to build
JavaScript was rolled out as a scripting language in 1995 web applications, mobile applications, and desktop
when the world wide web was just introduced in the market. applications.
The main objective of JavaScript was to build more dynamic Angular uses Typescript as the main development
web applications and perform functional programming. language. Typescript is then converted into simple JavaScript
According to the data, 98% of web applications are made with at compile time. Angular is also a component-based
JavaScript. Every browser has a dedicated JavaScript engine framework. Angular components contain three parts: A
to run JavaScript on the client side[12]. JavaScript can also be HTML template file, a CSS file, and a TS file[5].
used for server-side website deployments. There are many
frameworks available to build the UI of the web application
38
Authorized licensed use limited to: MULTIMEDIA UNIVERSITY. Downloaded on January 24,2024 at 19:49:17 UTC from IEEE Xplore. Restrictions apply.
2023 International Conference on Computational Intelligence, Communication Technology and Networking (CICTN)
39
Authorized licensed use limited to: MULTIMEDIA UNIVERSITY. Downloaded on January 24,2024 at 19:49:17 UTC from IEEE Xplore. Restrictions apply.
2023 International Conference on Computational Intelligence, Communication Technology and Networking (CICTN)
Fig. 4. Angular v/s React GitHub Repository Fig 7 shows Google trend data and shows that React is the
more searched framework than Angular.
According to the GitHub trend data, React repository is
more popular than the Angular repository. As you can see the
difference between the total stars for both the repository.
There is a table given below which shows the total data
about both the repository[9].
40
Authorized licensed use limited to: MULTIMEDIA UNIVERSITY. Downloaded on January 24,2024 at 19:49:17 UTC from IEEE Xplore. Restrictions apply.
2023 International Conference on Computational Intelligence, Communication Technology and Networking (CICTN)
41
Authorized licensed use limited to: MULTIMEDIA UNIVERSITY. Downloaded on January 24,2024 at 19:49:17 UTC from IEEE Xplore. Restrictions apply.
2023 International Conference on Computational Intelligence, Communication Technology and Networking (CICTN)
curve. Then we checked the SEO of both web pages with the [13] Delcev, S., & Draskovic, D. (2018, May). Modern JavaScript
help of the lighthouse google developer tool[6]. To check the frameworks: A survey study. In 2018 Zooming Innovation in
Consumer Technologies Conference (ZINC) (pp. 106-109). IEEE.
performance, we have used the google developer tool
[14] Fat, N., Vujovic, M., Papp, I., & Novak, S. (2016, June). Comparison
lighthouse which gives us various parameters like web page of AngularJS framework testing tools. In 2016 Zooming Innovation in
load time, speed index, total blocking time etc. which Consumer Electronics International Conference (ZINC) (pp. 76-79).
concluded the overall performance of both webpages build IEEE.
using angular and react frameworks[4]. [15] Ferreira, J. (2018). A javascript framework comparison based on
benchmarking software metrics and environment configuration
VIII. CONCLUSION (Doctoral dissertation, Masters dissertation, DIT, 2018.
In this research paper, our main objective is to differentiate
between react and angular frameworks and find out which one
is best. We have used NPM trends, Google trends,
Stackoverflow trends, and Github Data for comparing the
popularity and found that React framework is more popular
than Angular framework among developers. Then we have
analysed the documentation and syntax of both framework
and found that react is little bit easy to learn because react uses
JSX and it is made of HTML and JavaScript, but on the other
hand Angular uses Typescript which is hard to learn as
compared to JSX. Then we have used Google developer tool
Lighthouse for SEO scores and Performance scores. In SEO
scores Angular beats the Reacts framework. Angular has
higher SEO score than React which makes Angular a better
search engine-optimized framework. Now we have tested
performance scores and the performance of react is higher
than angular framework[11]. It is difficult to say that this
framework is best because every framework has its
advantages and disadvantages but we can say that if
developers want easy to learn and high performance
framework than react is best but if developer wants to develop
a large complicated web application than angular is best as its
SEO score is also good as compare to the react[6].
REFERENCE
[1] Wohlgethan, E. (2018). Supportingweb development decisions by
comparing three major javascript frameworks: Angular, react and vue.
js (Doctoral dissertation, Hochschule für Angewandte Wissenschaften
Hamburg).
[2] Saks, E. (2019). JavaScript Frameworks: Angular vs React vs Vue.
[3] Bielak, K., Borek, B., & Plechawska-Wójcik, M. (2022). Web
application performance analysis using Angular, React and Vue. js
frameworks. Journal of Computer Sciences Institute, 23, 77-83.
[4] Kumar, A., & Singh, R. K. (2016). Comparative analysis of angularjs
and reactjs. International Journal of Latest Trends in Engineering and
Technology, 7(4), 225-227.
[5] Aggarwal, S., & Verma, J. (2018). Comparative analysis of MEAN
stack and MERN stack. International Journal of Recent Research
Aspects, 5(1), 127-132.
[6] Kaluža, M., Troskot, K., & Vukelić, B. (2018). Comparison of front-
end frameworks for web applications development. Zbornik
Veleučilišta u Rijeci, 6(1), 261-282.
[7] Vyas, R. (2022). Comparative Analysis on Front-End Frameworks for
Web Applications. International Journal for Research in Applied
Science and Engineering Technology, 10(7), 298-307.
[8] Voutilainen, J. (2017). Evaluation of Front-end JavaScript Frameworks
for Master Data Management Application Development.
[9] Molin, E. (2016). Comparison of Single-Page Application
Frameworks: A method of how to compare Single-Page Application
frameworks written in JavaScript.
[10] Madhuri A. Jadhav et al, “Single Page Application using AngularJS”,
International Journal of Computer Science and Information
Technologies, Vol. 6 (3) , 2015, 2876-2879 [10] Comparison of single-
page application frameworks - Molin, Eric – 2016
[11] Xu, W. (2021). Benchmark Comparison of JavaScript Frameworks
React, Vue, Angular and Svelte.
[12] Drobyazkin, R. S., & Dmitrienko, N. A. (2021). COMPARISON OF
ACTUAL JAVASCRIPT FRAMEWORKS FOR DEVELOPING
WEB- APPLICATIONS.
42
Authorized licensed use limited to: MULTIMEDIA UNIVERSITY. Downloaded on January 24,2024 at 19:49:17 UTC from IEEE Xplore. Restrictions apply.