Why AND How To Write Your First Salesforce Lightning Component Using Aura
2 min readFeb 5, 2021
There’s a reason why being a Salesforce Developer is one of the most lucrative jobs on the market. One of those reasons are Lightning Components. Salesforce Lightning Components using Aura are great for the following reasons:
- You can write it right inside of developer console
- You are able to make use of HTML markup and CSS stylesheets for complete control over how your code looks
- You get to make use of the very powerful javascript language for client-side processing of your code.
- You can connect your front end Aura / HTML / Javascript to the backend Apex and SOQL for very powerful interactions with the Salesforce database.
To write an Aura Lightning Component you will be utilizing the MVC (Model / View / Controller) architecture.
- Model: This would be your Salesforce database. Your lightning component can connect to your salesforce database seamlessly and allows you to access your data through your Apex controller class.
- View: This would be your HTML markup. In your aura component you are able to…