User Story
As a Salesforce administrator, I want to add a "HelloWorld" component to the home page layout so that users are greeted with a personalized message when they visit the application.
HTML
<template>
<h1>{greeting}</h1>
<lightning-button label="Click Me" onclick={handleClick}></lightning-button>
</template>
Java Script
import { LightningElement, track } from 'lwc';
export default class HelloWorld extends LightningElement {
@track greeting = 'Hello, World!';
handleClick() {
this.greeting = 'Hello, LWC!';
}
}
Video
Video does not exists.