The HTML template for the component can be used declaratively to listen for events, or programmatically using an imperative JavaScript API. Since less code needs to be written, it is…
Author: Abdul Gafoor

Pass Data in an Event
Set a detail property in the CustomEvent function Object() { [native code] } to send data to a receiving component. The event listener’s handler function provides access to the data…

Lifecycle Hooks pt. 2
Flowing from parent to child are both hooks. Because they are not yet created, child components cannot be accessed from callbacks. Use this to gain access to the host element.…

Lifecycle Hooks pt. 1
When a component instance is created, the constructor() method is called. Avoid adding properties to the host element while it is being built. In any other lifecycle hook, you can…

Handling Focus for Components
Program your components to recognize which element is the focus and which can accept input if you want them to be accessible to persons with impairments. The tab key on…

Accessibility Attributes in Salesforce
Use HTML properties on your components to make them accessible to screen readers and other assistive technology. HTML attributes provide information about the UI elements they contain. By reading the…