Build your first Lightning Component — Only View
Sep 2, 2018 · 1 min read
How to build your first Lightning Component?
Only View, No Logic
Step 1: Create Lightning Component Bundle named “Welcome”
After creation, we will get four primary files such as
- Welcome.cmp
- Welcome.css
- WelcomeController.js
- WelcomeHelper.js
We need to update Welcome.cmp & Welcome.css file for now.
Welcome.cmp | Describes View Layout
Welcome.css | Describes Styling
Step 2: Create Lightning App named “LearningLightning”
LearningLightning.app | To run this newly created Lightning Component
You can notice that we are using the tag extends= “force:slds” to run the Lightning Application using Lightning Styles.
Step 3: Result

