How does Lightning Web Component JS file work?

JS file is included by default in Lightning Web Component file tree structure and this JS file must be needed to execute Lightning Web Component. The naming convention of this file is componentName.js. JS files are based on ES6 modules. The structure is: Here the componentName is “welcomeWindow“. If you …

10,729 total views, no views today

Pascal Case, Camel Case, Kebab Case & Snake Case

In Lightning Web Component, we need to maintain the case for Class Name, Variable Name, Component Name etc. Before going to describe, we need to focus on the respective cases. Camel Case: Each word in the middle of the respective phrase begins with a capital letter. Pascal Case: It is …

25,699 total views, no views today

Create First Lightning Web Component

Every Lightning Web Component (LWC) has the following files such as html [defines the UI layer with html content] js [defines the behavior of the LWC] css [defines the look & feel] svg [defines the Scalable Vector Graphics for the Lightning Web Component] xml [defines the metadata of the LWC …

8,462 total views, no views today