Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
A basic Salesforce Lightning example that increments a counter using LWC.
# salesforce_lightning/demo/CounterApp
1. Create a Lightning Web Component 'counterApp'
2. Add a variable 'counter' initialized to 0 in JS controller
3. Add a Button element in HTML template
4. Add a Text element to display 'counter'
5. Configure Button click handler -> Increment 'counter'
6. Bind Text element to show current 'counter' value
7. Deploy and previewSalesforce Lightning is a component-based framework and user interface platform designed for rapid development of dynamic web applications on the Salesforce ecosystem, providing tools for both developers and admins to create modern enterprise apps.
Origin & Creator
Developed by Salesforce, originally introduced in 2015 to modernize the Salesforce UI and app development experience.
Industrial Note
Lightning is widely adopted in enterprise CRM, customer portals, sales dashboards, and process automation where rapid development and Salesforce ecosystem integration are essential.