Addis Ababa University
Addis Ababa University
Emerging Technology
ASSIGNMENT ON
THE TWO JavaScript frameworks Angular and React
AND HOW THEY DIFFER IN TERMS OF THEIR
Architecture, Functionality, and Community support
SUBMITTED BY:
Name: Yordanos abay
Section: 4
ID: ugr/6183/15
Before writing about the two frameworks of JavaScript. what is frame work?
Framework is a set of rules, standards, or guidelines that are used to create
something. In the context of software development, a framework is a set of code
that provides a foundation for building applications.
Angular and React are two of the most popular JavaScript frameworks for
building user interfaces. They both have their own strengths and weaknesses, and
the best choice for a particular project will depend on the specific needs of the
project.
Angular
Angular is a full-featured framework that provides a lot of structure and
guidance for developers. It is based on the Model-View-Controller (MVC)
pattern, and it has a strong focus on testability and maintainability.
Angular is a good choice for large, complex projects that require a lot of
structure.
In terms of architecture, Angular is a component-based framework. This
means that each part of the UI is represented by a separate component.
Components can be reused and combined to create complex UIs.
In terms of functionality, Angular includes features for routing, forms,
Dependency injection, Components, and internationalization
Angular has a large and active community of developers. There are many
resources available for Angular, including tutorials, documentation, and
code examples. Angular also has active issue trackers and forums where
developers can ask questions and get help.
Angular pros:
It is a full-featured framework with a lot of structure and guidance
for developers.
It is based on the Model-View-Controller (MVC) pattern, which
makes it easy to organize code and test applications.
It has a strong focus on testability and maintainability.
It is a good choice for large, complex projects that require a lot of
structure.
Angular cons:
React
React is a more lightweight framework that is focused on building user
interfaces. It is based on the Virtual DOM, which allows it to update the
DOM more efficiently than traditional frameworks. React is a good choice
for smaller, simpler projects or for projects that need to be able to update
the UI quickly.
In terms of architecture, React is also a component-based framework, but it
takes a different approach. React components are stateless, which means
that they do not have any internal state. This makes them easier to test and
maintain.
In terms of functionality, React includes features for state management,
routing, and animations
React is a declarative library, which means that you describe the state of
your application and React will take care of the rest. This makes it easy to
reason about your code and to make changes.
React is popular because it is used by many large companies. This means
that there is a lot of support available for React, and there are many
resources available to learn how to use it.
React pros:
React cons:
It does not have as much structure as Angular, which can make it difficult to
organize code and test applications.
It is not as well-suited for large, complex projects.
It does not have as many features as Angular.
Ultimately, the best choice for a particular project will depend on the specific
needs of the project. If you need a full-featured framework with a lot of structure,
Angular is a good choice. If you need a lightweight framework that is focused on
building user interfaces, React is a good choice.