Creating Lightning Web Components are very simple. If you know HTML, JavaScript, and CSS. When you create a new LWC component, it will create 3 files by default.
for EX: myFirstLWC
for EX: myFirstLWC
- myFirstLWC.html: It provides the structure for your component, uses HTML tags to build tha structure your component.
- myFirstLWC.js: It defines the core business logic and event handling.
- myFirstLWC.js-meta.xml: It's used to configure the component. like which page this component to be available and configure variables from page builder.
- myFirstLWC.css: It's optional. It's not created by default. we have to create it manually. The CSS file provides the look, feel, and animation for your component.
COMMENTS