function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Silpi Paitandi 7Silpi Paitandi 7 

Hi All...I just started learning salesforce lightning.I tried to use the component in spp but i am not getting anything on the preview page .FYI i deployed the domain also.

NagendraNagendra (Salesforce Developers) 
Hi Silpi,

May I suggest you please check with below Salesforce documentation which will point you in the right direction. Please let us know if this helps.

Mark this as solved if it's resolved.

Thanks,
Nagendra
SFDC_DeveloperSFDC_Developer
can you please paste your code? what you have tried so far.
Silpi Paitandi 7Silpi Paitandi 7
Hi Nagendra!I am following the same doc but unable to get the preview for the component,Thanks!
Silpi Paitandi 7Silpi Paitandi 7
Hi SFDC_Developer!I am just using a basic code like-
<aura:component >
    <h1>Hello silpi </h1>
</aura:component>
in lightning app I used-
<aura:application >
    <c:HelloWorld/>
</aura:application>
I should get the o/p as Hello Silpi but its not showing I am getting a blank page.
Thanks !!
SFDC_DeveloperSFDC_Developer
Is your component name is HelloWorld?
 
Silpi Paitandi 7Silpi Paitandi 7
Yes
 
kumar_arunkumar_arun
Hi Silpi,

To use Lightning Components, your organization needs to have a custom domain configured using My Domain.​ https://trailhead.salesforce.com/en/modules/lex_dev_lc_basics/units/lex_dev_lc_basics_prereqs
Component Name: HelloWorld
<aura:component >
    <h1>Hello silpi </h1>
</aura:component>
<aura:application >
    <c:HelloWorld/>
</aura:application>
This should print Hello silpi, the code is correct. 

Please, Make sure that your org has no namespace. If your org has namespace then for lightning app code should look like below :
<aura:application >
    <YourNameSpace:HelloWorld/>
</aura:application>
If it helps, Please mark it as BEST Answer.