Salesforce Decode
Salesforcedecode
Back to questions
LWCBeginnerlwcbasicslightning

What is Lightning Web Components (LWC)?

Real World Scenario

Leadership wants a custom widget on the Account page. You explain why LWC is the modern choice.

Expected Answer

• LWC is Salesforce's standard JavaScript framework for building UI on the Lightning platform • Components use HTML templates, JavaScript modules, and CSS scoped to the component • LWCs run in a secure locker or LWS sandbox with access to platform APIs • They replace older Aura for new development due to web standards and performance • LWCs compose on record pages, app pages, Experience Cloud, and inside Flow screens

Follow-Up Questions & Answers

Click to expand — each follow-up includes a direct, interview-ready answer

Legacy Aura exists but new features target LWC. You may wrap or coexist during migration. Interviews expect LWC for greenfield work.

Architect Perspective

Position LWC as default UI layer on Lightning—simple and correct for 2025 interviews.