Why should you prefer lwc over aura web components? (1) - PowerPoint PPT Presentation

About This Presentation
Title:

Why should you prefer lwc over aura web components? (1)

Description:

The Blueflame Labs is one of the best Salesforce Consulting Partners providing a wide range of valuable Salesforce Services to clients. To know more details about the LWC implementations provided by Salesforce– Get in touch with us today. – PowerPoint PPT presentation

Number of Views:13

less

Transcript and Presenter's Notes

Title: Why should you prefer lwc over aura web components? (1)


1
Why should you prefer lwc over aura web
components?
2
INTRODUCTION
  • In 2014, salesforce launched the lightning
    framework.
  • Since internet standards offered limiting results
    usefulness to form large-scale net applications
    at the time, aura came with its component-driven
    model that allowed developers to form large-scale
    shopper applications on the cyber web.
  • Fast-forward to five years from the time of aura
    the cyber web stack has seen an associate new
    level of innovation and standardization that
    reworked it from being a rudimentary
    page-rendering platform to an internet
    development platform.

3
WHAT IS THE LIGHTNING COMPONENT?
  • To understand the salesforce lightning part, we
    must grasp salesforce lightning first.
  • Salesforce lightning could be a complete tool
    chest set for developers which embraces the
    salesforce lightning framework and a few tools
    like lightning app builder, experienced builder
    to form the event seamless for the developers.
  • Lightning element is a user interface (UI) that
    is primarily based on a framework for developing
    mobile/desktop/web-based applications.

4
WHAT IS THE LIGHTNING COMPONENT?
  • Victimization is the lightning part alongside
    these tools, youll customize and deploy new apps
    in mobile devices simply and effortlessly.
  • Aura elements are reusable units of the app.
  • It represents a tiny low section of the UI of
    reusable apps.
  • Aura part framework contains many such pre-built
    elements.

5
WHAT IS THE LIGHTNING COMPONENT?
  • Lightning elements go along with lightning design
    styling and are configurable to make custom
    lightning elements for the apps in step with the
    necessities.
  • Developers render these elements to provide HTML
    document object model components among the
    browsers.
  • Everything that happens within an element is
    encapsulated.
  • Developer will simply consider building their
    apps.
  • Innovations, style changes, or any new
    modification done to the elements are done by the
    author of the element itself.

6
BENEFITS OF USING LIGHTNING COMPONENTS
  • It helps the developers to make apps using a
    standardized JavaScript framework.
  • Components are straightforward to use, reusable,
    and customizable, which offers a strong and quick
    framework to figure with.
  • Lightning element pages are higher in performance
    than their inheritance counterparts.
  • Easy to make a responsive page or app with the
    lightning element.

7
THE EVOLUTION OF LIGHTNING WEB COMPONENTS (LWC)
  • When a development framework like the lightning
    framework is designed, the best possible
    resolution is assumed.
  • However, with time, each best resolution gets
    room for improvement.
  • Lightning components parts are the new way to
    create lightning parts easily.
  • In 2014, since the aura was introduced, the
    internet has modified drastically.
  • Google began to scrap the decades-old limitations
    and replacement them with a quicker and best
    method of working with the net.

8
THE EVOLUTION OF LIGHTNING WEB COMPONENTS (LWC)
  • This new idea was referred to as the net element.
  • After Google has free net components to the
    google chrome browser, all the main net browsers
    like Firefox, Safari, or edge began to adopt it
    quickly.
  • Salesforce development had to stay up the pace
    and standardizations of the online parts in
    keeping with the large demand of the online parts
    across the web.
  • Salesforce switched from the lightning element
    framework to the lightning web elements framework
    while retaining all the benefits of the
    well-known aura framework.
  • Also, the users of the aura framework started
    using these 2 frameworks as they are identical.

9
WHY SHOULD WE USE LWC INSTEAD OF EXISTING AURA
COMPONENTS?
  • Easy to learn LWC is essentially takes the shape
    through native internet standards that are within
    the browser. It means no additional abstraction
    layer like the aura framework.
  • Better performance LWC is likely to render
    faster than aura elements, due to the lack of an
    additional abstraction layer, which is important
    for deliverability.

10
WHY SHOULD WE USE LWC INSTEAD OF EXISTING AURA
COMPONENTS?
  • Common components/service components We will
    currently write elements that dont have any
    interface in LWC, and those elements are often
    reused in different elements that are more
    economical than static resources.
  • Better security, testing and browser
    compatibility With LWC, DOM isolation is higher
    and has a lot of restricted event scope. With
    every of these, we have a lot of consistency in
    planning elements. LWC additionally supports
    two-way information binding with that we will
    coordinate however information moves between
    parts.

11
REUSING AURA FRAMEWORK FOR LWC DEVELOPMENT
  • We all know about lightning data service (LDS).
    It is used to do crud operations on record
    without any using apex code.
  • LWC can also benefit from LDS by accessing data
    from all objects.
  • Import from lightning/uirecordapi
  • Createrecord(recordinput)
  • Updaterecord(recordinput)
  • Deletecreaterecord(recordinput)
  • Getrecord(recordinput)
  • We can compose aura components from lightning web
    components but cant do vice versa.

12
DIFFERENCES BETWEEN AURA AND LIGHTNING WEB
COMPONENTS
  • LWC was created to beat the aura framework
    however not eliminate the facility of the
    lightning elements.
  • With the online standards, developers had to use
    many alternative things like a rendering engine,
    normal components, core language, and events to
    create an entire large-scale web application.

13
SHORTCOMINGS WITH AURA
  • Continuous UI transformations required optimized
    rendering that wasnt the case with lightning
    elements standard UI components couldnt be
    altered to make custom-made elements that were
    the largest defect.
  • Modern enterprises required made-to-order user
    experiences. The client-side technology like
    modules, classes, decorations, or guarantees
    couldnt be written to make fashionable and
    large-scale organizations. Moreover, angular,
    react these are all JavaScript frameworks,
    however, offer the best level of abstraction.

14
CONCLUSION
  • Its nice to see how an organization will evolve
    and use the lessons learned to make a decent
    framework, supported standards, and smart
    practices.
  • As a result, the community has embraced LWC, and
    that would not be shocked if aura elements are
    deprecated shortly.
  • The Blueflame Labs is one of the best Salesforce
    Consulting Partners providing a wide range of
    valuable Salesforce Services to clients.
  • To know more details about the LWC
    implementations provided by Salesforce Get in
    touch with us today.
Write a Comment
User Comments (0)
About PowerShow.com