Introducing Aura Components
Lightning components is the umbrella term for Aura components and Lightning web components. As of Spring ’19 (API version 45.0), you can build Lightning components using two programming models: the Lightning Web Components (LWC) model, and the original Aura Components model.
| Required Editions |
|---|
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, and Developer Editions |
The Lightning Component framework is a UI framework for developing Lightning components for mobile and desktop devices. Lightning web components and Aura components can coexist and interoperate on a page.
Lightning Web Components uses core Web Components standards and provides only what’s necessary to perform well in browsers supported by Salesforce. Because it’s built on code that runs natively in browsers, Lightning Web Components is lightweight and delivers exceptional performance. Most of the code you write is standard JavaScript and HTML.
For new components, create Lightning web components instead of Aura components. Lightning web components perform better and are easier to develop than Aura components. However, when you develop Lightning web components, you also may need to use Aura, because LWC doesn’t yet support everything that Aura does. We’re actively working in each release to eliminate these gaps so that LWC works for all use cases.
Configure Lightning web components and Aura components to work in Lightning App Builder and Experience Builder. Admins and end users don’t know which programming model was used to develop the components. To them, they’re simply Lightning components.
This developer guide covers how to develop custom Aura components. The Lightning Web Components Developer Guide covers how to develop custom Lightning web components.
The name of the programming model is Aura Components (uppercase). When we refer to the components themselves, we use Aura components (lowercase).
-
What is Salesforce Lightning?
Lightning includes the Lightning Component Framework and some exciting tools for developers. Lightning makes it easier to build responsive applications for any device.
-
Use Lightning Web Components instead of Aura Components
Lightning web components perform better and are easier to develop than Aura components. However, when you develop Lightning web components, you also may need to use Aura, because LWC doesn’t yet support everything that Aura does.
-
Aura Components Release Notes
Use the Salesforce Release Notes to learn about the most recent updates and changes to Aura Components.
-
Aura Components
Aura components are the self-contained and reusable units of an app. They represent a reusable section of the UI, and can range in granularity from a single line of text to an entire app.
-
Events
Event-driven programming is used in many languages and frameworks, such as JavaScript and Java Swing. The idea is that you write handlers that respond to interface events as they occur.
-
Browser Support for Aura Components
Aura Components support the same browsers as Lightning Experience.
-
Using the Developer Console
The Developer Console provides tools for developing your Aura components and applications.