Created
April 9, 2022 14:40
-
-
Save svierk/db99dab1c7152db0fbea4a3a8ecff4ca to your computer and use it in GitHub Desktop.
An example LWC that adds a classic greeting to any page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { api, LightningElement } from 'lwc'; | |
| /** | |
| * An example LWC that adds a classic greeting to any page. | |
| * @alias HelloWorld | |
| * @extends LightningElement | |
| * @hideconstructor | |
| * | |
| * @example | |
| * <c-hello-world name="World"></c-hello-world> | |
| */ | |
| export default class HelloWorld extends LightningElement { | |
| /** | |
| * Enter the name of the person to greet. | |
| * @type {string} | |
| * @default 'World' | |
| */ | |
| @api name = 'World'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment