Problem
Create a Lightning Web Component (LWC) that shows details of an account using a wire method.
Complete the provided practice example to display account name, type and industry on the screen.
Instructions
- Define a wire method in the JavaScript file to retrieve a single account record using the recordId api variable.
- The wire method must retrieve account name, type and industry.
- Create three paragraph tags(<p>) and display account name, type and industry on the screen.
Sample output
Note : This exercise introduces you to writing a simple LWC component that query account records using wire method. Focus on meeting the requirements, and feel free to validate your code using the execute button.
To learn more about wire methods in lightning web components, click here.