Need to preview a Lightning Component

742    Asked by dipesh_9001 in Salesforce , Asked on Apr 23, 2021

My problem is I just want to preview a Lightning component in the developer console. There are a ton of ways to make lightning components in all sorts of other mediums, but I just want to click preview and see it. I believe I need to have a "dummy" lightning app to host it. An outline of what I have now is for the Component called "testApp.cmp"code hello world, please display this and the Lightning App called "testApp.app": How to get lighting component preview?

Answered by Gillian Hamer

Having a dummy app for the purpose of previewing is typically what I do. You don't need Lightning Out for this, though. Just put the component directly in the app: Note: Lightning components accelerate development and app performance. Develop custom components that other developers and admins can use as reusable building blocks to customize Lightning Experience and the Salesforce mobile app.



Your Answer

Interviews

Parent Categories