LWC
LWC
LWC
Years ago,
Salesforce developers were using a unique HTML tag-based Mark-up language known as
Visual force pages and Apex as their controller for logic.
Fast-forward to 5 years from the time of Aura; the web stack has seen an
unprecedented level of innovation and standardization that transformed it from
being a rudimentary page-rendering platform to a web development platform.
Lightning Web Components: An Introduction
If LWCs get the same UI result, what is in store for Web Stack?
Languages like React, Angular and the Lightning Components Framework which use
JavaScript are now part of the modern Web Stack. Consequently, the Web Stack no
longer requires an additional mid-layer which used to be a challenge for the
developers working with Aura as it impacted the speed and performance of the
applications.
The addition of above features give more power to our web Stack to create a
lightning UI component, It doesn’t require a mid-Layer to the browser which impacts
our speed and performance. This one is the main reason developers are struggling
within Aura and now LWC will work for them.
Aura-based Lightning components are built using both HTML and JavaScript,
but LWC is built directly on the Web stack.
Web components can easily interact with the Aura component and can handle
the events of one another
A developer who works on LWC is not only using coding skills on a
particular framework but in other frameworks like React or Angular, which are based
on the Web Stack.
In addition to the latest features, LWC still embraces the features like
the Security, Lightning Data Service, and Base lightning components from Aura.
Creating an LWC is fast as it no longer requires the user to download the
JavaScript and wait for the engine to compile it before rendering the component.
It is possible to include LWC in Aura, but not the other way around as the
generic elements cannot be added to the custom components.
lightening components
Next Best Action
For the most part, if you are building new functionality consider using LWCs to
benefit from the increased native operation in the browser and performance. Just
starting? LWCs are the future.