UI & Lightning Experience Development Flashcards
Q. What is Lightning Experience in Salesforce?
A. Lightning Experience is Salesforce’s modern UI, providing enhanced user experience, performance, and functionality compared to Classic.
Q. What are the key benefits of Lightning Experience?
. - Modern and responsive UI
- Enhanced performance
- Dynamic components
- Drag-and-drop customization
- Mobile compatibility
Q. What is the difference between Salesforce Classic and Lightning Experience?
A. Lightning Experience has a more modern UI, supports Lightning Web Components (LWC), and provides enhanced customization features.
Q. What is Lightning App Builder?
A. A drag-and-drop tool to create custom pages using Lightning components.
Q. What are the different types of pages you can create in Lightning App Builder?
- Home Pages
- Record Pages
- App Pages
Q. What are Lightning Record Pages?
A. Customizable record layouts that allow users to arrange Lightning components dynamically.
Q. What are Dynamic Forms?
A. A feature that allows field visibility rules and layouts to be controlled dynamically.
Q. What is a Lightning Web Component (LWC)?
A. LWC is a modern UI framework built on Web Standards (JavaScript, HTML, and CSS) to create reusable UI components in Salesforce.
Q. How do LWC and Aura components differ?
A. LWC is optimized for performance and built on modern web standards, whereas Aura is an older framework with more overhead.
Q. What are the key benefits of LWC?
- Faster performance
- Uses standard web technologies
- More secure and efficient
- Reusable and modular
Q. What are the key files in an LWC component?
- .html (template)
- .js (JavaScript logic)
- .css (styling)
- .xml (metadata configuration)
Q. What is an example of a simple LWC component?
// helloWorld.js
import { LightningElement } from ‘lwc’;
export default class HelloWorld extends LightningElement {
message = ‘Hello, Salesforce!’;
}
Q. What is an example of a simple LWC component?
<!-- helloWorld.html -->
<template>
<p>{message}</p>
</template>
Q. What is the purpose of the .xml configuration file in LWC?
A. It defines component properties, visibility, and where the component can be used.
Q. What is an Aura Component?
A. A UI framework for building dynamic web applications in Salesforce, older than LWC.