Skip to main content

Posts

Featured

Let's Create First LWC component

First set up the development environment.  1)  Install a code editor  The recommended code editor is   Visual Studio Code (VS Code) Install  Salesforce Extension Pack for Visual Studio Code. Install Prettier extension for code formatting.  2) Install the Salesforce CLI Lets create a project      In VS Code press ,  Command + Shift+P      enter sfdx , select   SFDX: Create Project .      Select Standard Project Template     Enter desired name for the Project.       Lets create first LWC      Press Command + Shift+P     enter sfdx, select  SFDX: Create Lightning Web Component .      Type name as hellowWorld and for desired directory, accept the default. helloWorld Component      Add following code to helloWorld.js      import  {  LightningElement ,  api  }  fr...

Latest Posts