thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Business Platforms & EA · Foundational

Lightning Web Component (LWC)

Salesforce UI framework based on web standards (custom elements, modules, shadow DOM) for building components.

Definition

An LWC consists of an HTML template, a JavaScript class and a metadata configuration file. Components use decorators @api (public property), @track and @wire, communicate via events and Lightning Message Service, and access data through Lightning Data Service or Apex.

Example

import { LightningElement, api } from 'lwc'; export default class Card extends LightningElement { @api recordId; }

Exam tip

Know the decorators: @api public, @wire data provisioning, @track for deep reactivity of objects.

Related terms