Create Lightning Web Components | Lightning Web Components Basics

Опубликовано: 04 Ноябрь 2022
на канале: Saurabh Infotech Solutions
33,409
46

#salesforce
#trailhead
#salestraining

Lightning Web Components Basics

Create Lightning Web Components
Learning Objectives
After completing this unit, you'll be able to:

Describe the contents of each component file.
Create JavaScript methods for a Lightning web component.
Use Lifecycle Hooks in component JavaScript.
More Play Time
Say you want to build a data display element, independent of a specific object in Salesforce. A good example is the productCard component in the ebikes sample repo. Let's examine that card component, and build our own version from scratch so you can see how it evolves into a full-fledged Lightning web component. You'll quickly get the basics when you build up the parts of a component and explore more samples.

A component simply needs a folder and its files with the same name. They're automatically linked by name and location.